confirm() method not working from non-top active window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2018 11:07 PM
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
- Labels:
-
Best Practices
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2018 08:07 PM
Please check below for solutions
https://community.servicenow.com/community?id=community_question&sys_id=8982c321dbd8dbc01dcaf3231f961978
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2018 09:43 PM
Hi sachin,
tnx for your reply, but this solutions didn't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2018 10:35 PM
Hi Avivs,
Could you please go through this below link and check if that helps you somehow.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2018 11:42 PM
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).