confirm() method not working from non-top active window

Aviv S_
Tera Contributor

Hi guys,

I have a ui action that open new window (tab) in the browser  with the line:
" window.open(url, 'mywin') " .
The above ui action open new form.

There is a onChange client script for the table of the above form, that conatins the method " confirm() " .

The fact that confirm is invoked from the non-top active window I get this error on the console:
"A window.confirm() dialog generated by this page was suppressed because this page is not the active tab of the front window. Please make sure your dialogs are triggered by user interactions to avoid this situation"

And the onChange client not execute.

Any help?

Tnx,
Aviv

 

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

Please check below for solutions

https://community.servicenow.com/community?id=community_question&sys_id=8982c321dbd8dbc01dcaf3231f961978

 

Regards,

Sachin

Hi sachin,
tnx for your reply, but this solutions didn't help.

 

Shambhu5
Kilo Guru

Hi Avivs,

Could you please go through this below link and check if that helps you somehow.

Redirect to new tab/Window

Thanks

Aviv S_
Tera Contributor

Hi Vishrut,
tnx for your reply.

This solution talk about how to redirect to new window, it's not my problem I already done it.
The issue is how to invoke pop-up msg like alert/confirm for the not active tab (not the primarily).