Baseline Widely available
The StorageEvent
interface is implemented by the storage
event, which is sent to a window when a storage area the window has access to is changed within the context of another document.
StorageEvent()
Returns a newly constructed StorageEvent
object.
In addition to the properties listed below, this interface inherits the properties of its parent interface, Event
.
key
Read only
Returns a string with the key for the storage item that was changed. The key
attribute is null
when the change is caused by the storage clear()
method.
newValue
Read only
Returns a string with the new value of the storage item that was changed. This value is null
when the change has been invoked by storage clear()
method, or the storage item has been removed from the storage.
oldValue
Read only
Returns a string with the original value of the storage item that was changed. This value is null
when the storage item has been newly added and therefore doesn't have any previous value.
storageArea
Read only
Returns a Storage
object that represents the storage object that was affected.
url
Read only
Returns string with the URL of the document whose storage changed.
In addition to the methods listed below, this interface inherits the methods of its parent interface, Event
.
initStorageEvent()
Deprecated
Initializes the event in a manner analogous to the similarly-named initEvent()
method in the DOM Events interfaces. Use the constructor instead.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3