StorageEvent: initStorageEvent() メソッド
非推奨;: この機能は非推奨になりました。まだ対応しているブラウザーがあるかもしれませんが、すでに関連するウェブ標準から削除されているか、削除の手続き中であるか、互換性のためだけに残されている可能性があります。使用を避け、できれば既存のコードは更新してください。このページの下部にある互換性一覧表を見て判断してください。この機能は突然動作しなくなる可能性があることに注意してください。
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
)。
仕様書
Specification |
---|
HTML # dom-storageevent-initstorageevent |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
initStorageEvent |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Deprecated. Not for use in new websites.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
- この非推奨のメソッドの代わりに使用するコンストラクター:
StorageEvent()