onbeforeunload (HTML attribute)
DescriptionThis attribute captures the moment just before a page is unloaded, immediately before the (standard)
No fixed value - could be a call
to one or more defined functions or a simple
Non-standard event defined by Microsoft for use in Internet Explorer. May work in some other browsers but cannot be reliably used. Compatibility for this non-standard attribute not tested.