Contents Index Topic Contents | ||
Previous Topic: IHTMLFrameSetElement::put_onbeforeunload Next Topic: IHTMLHeaderElement |
IHTMLFrameSetElement::get_onbeforeunload
HRESULT get_onbeforeunload( VARIANT *p );Retrieves the inline script associated with the onbeforeunload event before a FRAME element is unloaded.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a VARIANT structure that receives the script.
This event is fired before the onunload event. It provides an opportunity to warn the user if the window is currently in an unsaved state and the information will be lost.
See also put_onbeforeunload
IHTMLFrameSetElement::put_onbeforeunload
HRESULT put_onbeforeunload( VARIANT v );Sets the inline script associated with the onbeforeunload event before a FRAME element is unloaded.
- Returns S_OK if successful, or an error value otherwise.
- v
- VARIANT structure that contains the script to be set.
This event is fired before the onunload event. It provides an opportunity to warn the user if the window is currently in an unsaved state and the information will be lost.
See also get_onbeforeunload
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.