Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: theAbacus@yahoo.com Newsgroups: comp.lang.javascript Subject: Re: Preventing "Prevent this page from creating additional dialogs" Date: Mon, 2 Apr 2012 16:16:23 -0700 (PDT) Organization: http://groups.google.com Lines: 20 Message-ID: <30433830.1107.1333408583298.JavaMail.geo-discussion-forums@yneo2> References: <8c8ded8c-6649-4772-a5fc-470348bc14d7@s9g2000pba.googlegroups.com> <10806346.32.1332613472484.JavaMail.geo-discussion-forums@vbht7> NNTP-Posting-Host: 24.216.73.190 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1333408679 12047 127.0.0.1 (2 Apr 2012 23:17:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 2 Apr 2012 23:17:59 +0000 (UTC) In-Reply-To: <10806346.32.1332613472484.JavaMail.geo-discussion-forums@vbht7> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.216.73.190; posting-account=po61-woAAAB0lTT5PduG-rhy0kI7mw8d User-Agent: G2/1.0 Xref: csiph.com comp.lang.javascript:13182 A popUp div seems like a reasonable solution; but when this popUp div appears on the screen & the User clicks outside the popUp div, then isn't the popUp simply minimized? (You could use an onblur window.close(), but is that desirable?) And once the popUp div is minimized, any subsequent calls to the popUp div will not cause the new/next popUp div to appear on the User's screen because it's already minimized? A valuable aspect of "alert();" is that it is modal(?), i.e. requires User response before resuming app execution. popUp div's and/or perhaps a little piece of the screen's "real estate" being dedicated to error msgs (& the like) provide some degree of User interaction; but they don't have the impact of an "alert" or "confirm" or "prompt" box. On Saturday, March 24, 2012 1:24:32 PM UTC-5, Rick Viscomi wrote: > On Friday, March 23, 2012 8:12:00 PM UTC-4, 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? > > The solution is to not use alerts. Use a popup div, which also gives you style control for browser consistency.