[whatwg] prompts, alerts and showModalDialog during beforeunload/unload events
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
> > 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()
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...
More information about the whatwg