This topic has not yet been rated - Rate this topic

StorageEvent object

[This documentation is preliminary and is subject to change.]

Provides event properties that are specific to the onstorage event.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 5.11.1.5Internet Explorer 9

Standards information

DOM Information

Inheritance Hierarchy

 Event
   StorageEvent

Examples

The following code example demonstrates how to respond to storage events.


function reportStorage(evt) {
    alert("Storage was updated for " + evt.url);
}
window.onload = function() {
    window.addEventListener('storage',reportStorage,false);
    window.sessionStorage.setItem('key','value');
} 

See also

Reference
onstorage
localStorage
sessionStorage

 

 

Build date: 3/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ