Can I check alert block checkbox in Mozilla?

2

In my code, I issue a confirm asking the user to select an option. The problem is: "When the user selects the desired option, another alert is issued, and in this other alert , a CHECKBOX option always appears for the user to dial and" Lock new alerts for this page ". This occurs in Mozilla, so I wonder if you can block this checkbox without touching your browser settings.

    
asked by anonymous 27.11.2014 / 14:35

1 answer

4

To answer your question: It is not possible to turn off this behavior and prevent the user from clicking on that checkbox that prevents further alerts from the page.

You have to use another way to do this. "Alert" s and "confirm" s should not be used with this frequency. The dialog also produces an audible warning in some browsers, and this is unpleasant.

Use dialog or display this information on the page otherwise. A dialog is any type of window that opens on the screen. A div with position: fixed; for example, can even be a div of the screen size so as not to go unnoticed.

    
27.11.2014 / 14:44