storageArea property
Gets the Storage object of the affected document.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Object
The Storage object.
Standards information
- , Section 4.4.1
Remarks
Typically, the storageArea property returns a pointer to either the localStorage or sessionStorage property of the window that dispatches the event. If initStorageEvent initializes the storage event, storageArea might also return other objects. To determine if a user created the event, check the isTrusted attribute of the event.
See also
- StorageEvent
- Reference
- localStorage
- sessionStorage
- url
Show:
