files/en-us/web/api/storageevent/initstorageevent/index.md
{{ApiRef("Web Storage API")}}{{deprecated_header}}
The StorageEvent.initStorageEvent() method is used to initialize the value of a {{ domxref("StorageEvent") }}.
initStorageEvent(type)
initStorageEvent(type, canBubble)
initStorageEvent(type, canBubble, cancelable)
initStorageEvent(type, canBubble, cancelable, key)
initStorageEvent(type, canBubble, cancelable, key, oldValue)
initStorageEvent(type, canBubble, cancelable, key, oldValue, newValue)
initStorageEvent(type, canBubble, cancelable, key, oldValue, newValue, url)
initStorageEvent(type, canBubble, cancelable, key, oldValue, newValue, url, storageArea)
typeArg
canBubble {{optional_inline}}
cancelable {{optional_inline}}
key {{optional_inline}}
oldValue {{optional_inline}}
newValue {{optional_inline}}
url {{optional_inline}}
storageArea {{optional_inline}}
None ({{jsxref("undefined")}}).
{{Specifications}}
{{Compat}}