[whatwg] prompts, alerts and showModalDialog during beforeunload/unload events

Scott González scott.gonzalez at gmail.com
Thu Feb 11 19:57:00 PST 2010

2010/2/11 Jonas Sicking <jonas at sicking.cc>

> 2010/2/11 Scott González <scott.gonzalez at gmail.com>:
> > I use dialogs in this fashion as well. Users get very frustrated when
> they
> > accidentally leave a page with unsaved content and this is the easiest
> > improvement for most developers to make.
> However you can accomplish this using the onbeforeunload return value.
> No need to open modal dialogs using showModalDialog/input()/alert()
> etc.

You're correct and that's actually what I do. I didn't realize Ojan wasn't
talking about this, even though the subject makes that pretty clear.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100211/5ed5b4d8/attachment-0002.htm>

More information about the whatwg mailing list