IHTMLDocument6::onstorage Property
Gets or sets a pointer to the event handler function associated with the Web Storage event.
Syntax
HRESULT IHTMLDocument6::get_onstorage(VARIANT *p); HRESULT IHTMLDocument6::put_onstorage(VARIANT v);
Parameters
- p
Pointer to a variable of type VARIANT that receives the IDispatch interface of an object with a default method that is invoked when the event occurs.- v
VARIANT that specifies the IDispatch interface of an object with a default method that is invoked when the event occurs.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The onstorage event is fired in a document when a storage area changes. All documents sharing the same session context, and those that are currently displaying a page from the same domain or subdomain where local storage is being committed, receive the event.
Internet Explorer 9. This event has been extended to IHTMLWindow7 and IHTMLBodyElement4.
See Also