Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

onstorage event

Fires when a Web Storage area is updated.

HTML5 A vocabulary and associated APIs for HTML and XHTMLInternet Explorer 8

Syntax

HTML Attribute <element onstorage = "handler(event)">
Event Property object.onstorage = handler;
attachEvent Method object.attachEvent("onstorage", handler)
addEventListener Method object.addEventListener("storage", handler, useCapture)

Event information

SynchronousNo
BubblesNo
CancelableNo

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

Remarks

The IHTMLEventObj5::url property of the event specifies the URL of the Web page that made the update.

For Windows Internet Explorer 9 standards mode, HTMLDocumentEvents3::onstorage will only fire on window objects. Handlers attached to document.body or document objects will not receive the event. (Note this does not apply to the HTMLDocumentEvents3::onstoragecommit event.)

The HTMLDocumentEvents3::onstorage event will only fire on window objects. Handlers attached to document.body or document objects will not receive the event. (Note this does not apply to the HTMLDocumentEvents3::onstoragecommit event.)

The HTMLDocumentEvents3::onstorage event is specified in the W3C Web Storage specification.

To invoke this event, do one of the following:

See also

Introduction to Web Storage

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.