[thelist] ununload confirm() handler. Do you want to proceed?

James Aylard evolt at pixelwright.com
Tue Jan 6 17:19:53 CST 2004


Scott Blanchard wrote:

> Is it possible to create some sort of function that is fired just
> prior to the page unloading, that will give the user a confirm
> dialog, asking if they really want to unload the page? Example, "If
> you continue, you will lose any changes that have not been saved.
> Continue?"

    There is the IE-proprietary onbeforeunload event that will do this [1].

1.
http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onbeforeunload.asp

James Aylard



More information about the thelist mailing list