Link to home
Start Free TrialLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

asked on

Prevent this page from creating additional dialogs.

HI Experts,

Whenever I have a JS alert, in Chrome I get the following option:

Prevent this page from creating additional dialogs.

Open in new window


Is there any way for me to disable this via JS or by running a VBS or batch file on the client computer? This actually an internal web application that my client wants to give access to partners, and I need to have these alerts?

Are these options only in Chrome, or can other browsers produce them also?

Thank you
Avatar of Rob
Rob
Flag of Australia image

Yes other browsers will have similar behaviour, Firefox being one of them.  Chrome has some GPO support if you've got that available but yes you would need to configure it for most of the major browsers.

Web Development has moved away from using alerts and more towards modals. e.g. such as this jQuery one: https://jqueryui.com/dialog/.  Is that a possibility?
Avatar of APD Toronto

ASKER

I don't know JQuery.  Is it possible for me to override the  alert() function, then I'll just bring up  a DIV and disable all other elements?

The reason  why I want to override the alert() function opposed to using another function, is because I'm using the alert(() in thousand places, so it'll be much easier to override it.  I think it something to do with prototype?
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial