StorageEvent: initStorageEvent() メソッド
Deprecated
Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.>
StorageEvent.initStorageEvent() メソッドは StorageEvent の値を初期化するために使用します。
構文
js
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省略可-
論理値で、イベントが DOM を介してバブリングするかどうかを示します。
cancelable省略可-
論理値で、イベントがキャンセル可能であるかどうかを示します。
key省略可-
このイベントの結果として値を変更しようとしているキーです。
oldValue省略可-
キーの古い値です。
newValue省略可-
キーの新しい値です。
url省略可-
変更を行おうとしている文書の URL です。
storageArea省略可-
このイベントが発生したストレージ領域を表す
Storageオブジェクトです。
返値
なし (undefined)。
仕様書
| 仕様書 |
|---|
| HTML> # dom-storageevent-initstorageevent> |
ブラウザーの互換性
関連情報
- この非推奨のメソッドの代わりに使用するコンストラクター:
StorageEvent()