Possible remove Alert lock checkbox in Mozilla?

Asked

Viewed 292 times

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 is issued alert, and in this other alert always appears an option to CHECKBOX for the user to mark and "Block new alerts from this page". This occurs in Mozilla, so I wonder if it has to block this checkbox without touching the browser settings.

  • I couldn’t use a dialog instead of a alert?

  • As far as I know (I don’t know if it’s changed yet) but the dialog does not support some browsers!

1 answer

4


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

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

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

  • in the case of dialog, from what I see it does not support for Mozilla Firefox.

  • 2

    @Alexandre "dialog" is a generic name for the user’s dialog/information interface. It’s something you have to do. jQuery has one in the UI, Boostrap also. What will be interesting in the near future is to use new HTML5 "dialog" but not yet practical as many browsers do not support it.

  • @Alexandre in another question I saw a modal that can function for you. Take a look here: http://jsfiddle.net/oqhq0ncq/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.