StorageEvent object
[This documentation is preliminary and is subject to change.]
Provides event properties that are specific to the onstorage event.
![]() ![]() |
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 5.11.1.5
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

