Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Preventing "Prevent this page from creating additional dialogs" Date: Wed, 17 Jun 2015 13:27:05 +0100 Organization: A noiseless patient Spider Lines: 24 Message-ID: <87y4jiv7ty.fsf@bsb.me.uk> References: <8c8ded8c-6649-4772-a5fc-470348bc14d7@s9g2000pba.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="3097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lAPqCTsrmey7ygCDcG82iIYnmMDM5HA8=" Cancel-Lock: sha1:g0CQqJNZfYOHSpJuNOwd90bTBvI= sha1:jypAPo1YOqOX9XKkgQ3qcSep0fQ= X-BSB-Auth: 1.c3e2840d40ebdb5d3a8e.20150617132705BST.87y4jiv7ty.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:28112 anilkumar04u@gmail.com writes: > On Saturday, March 24, 2012 at 5:42:00 AM UTC+5:30, Larry....@gmail.com wrote: >> I have an alert that is displayed on an error. The second time the >> alert is displayed, it comes up with a checkbox that says "Prevent >> this page from creating additional dialogs". If this is checked the >> alert no longer gets displayed. How can I prevent that message so that >> the alert is always displayed? > > Can any one of you please tell me what actually happens when user > checks that prompt message not to display any more dialog box. Why I > am asking this question is when user selects that box, from next time > system not performing any action that was done before when it was > displaying that pop-up message. It varies. Some browsers raise an exception and some do nothing at all. If you find a way to remove or disable the checkbox, it will almost certainly be considered a bug that will get fixed. In short, whatever you are trying to do this way needs to be done some other way. There are alternatives, but any specific advice rather depends on what you are trying to do. -- Ben.