--- title: storage slug: Web/API/Window/storage_event translation_of: Web/API/Window/storage_event ---
Событие storage
сигнализирует, что данные в объектах localStorage
или sessionStorage были
изменены. Подробнее см. Web Storage API.
<window>
)Property | Type | Description |
---|---|---|
target {{readonlyInline}} |
{{domxref("EventTarget")}} | The event target (the topmost target in the DOM tree). |
type {{readonlyInline}} |
{{domxref("DOMString")}} | The type of event. |
bubbles {{readonlyInline}} |
{{jsxref("Boolean")}} | Whether the event normally bubbles or not. |
cancelable {{readonlyInline}} |
{{jsxref("Boolean")}} | Whether the event is cancellable or not. |
key {{readonlyInline}} |
{{domxref("DOMString")}} (string) | The key being changed. |
oldValue {{readonlyInline}} |
{{domxref("DOMString")}} (string) | The old value of the key being changed. |
newValue {{readonlyInline}} |
{{domxref("DOMString")}} (string) | The new value of the key being changed. |
url {{readonlyInline}} |
{{domxref("DOMString")}} (string) | The address of the document whose key changed. |
storageArea {{readonlyInline}} |
{{domxref("Storage")}} | The Storage object that was affected. |