onbeforeunloadonbeforeunload*
*



Contents  *



Index  *Topic Contents
*Previous Topic: onafterupdate
*Next Topic: onbeforeupdate

onbeforeunload

Description

Fires prior to a page being unloaded.

Remarks

This event gives you a chance to request that the user not leave the page. By returning a string to this event, a dialog box is displayed that gives the user the option to stay on the page. The returned string is displayed in a predefined area to provide the user with the reason.

This event also fires when a document.open is done and when a frameset is created.

Applies To

FRAMESET, window

See Also

onunload


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.