storage
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since апрель 2017 г..
Событие storage
сигнализирует, что данные в объектах localStorage
или sessionStorage
были изменены. Подробнее см. Web Storage API.
Общая информация
- Specification
- Interface
StorageEvent
- Bubbles
-
Нет
- Cancelable
-
Нет
- Target
-
DefaultView (
<window>
) - Default Action
-
Нет
Свойства
Property | Type | Description |
---|---|---|
target Только для чтения |
EventTarget |
The event target (the topmost target in the DOM tree). |
type Только для чтения |
DOMString |
The type of event. |
bubbles Только для чтения |
Boolean |
Whether the event normally bubbles or not. |
cancelable Только для чтения |
Boolean |
Whether the event is cancellable or not. |
key Только для чтения |
DOMString (string) |
The key being changed. |
oldValue Только для чтения |
DOMString (string) |
The old value of the key being changed. |
newValue Только для чтения |
DOMString (string) |
The new value of the key being changed. |
url Только для чтения |
DOMString (string) |
The address of the document whose key changed. |
storageArea Только для чтения |
Storage |
The Storage object that was affected. |