Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

WindowEventHandlers.onstorage

この記事は編集レビューを必要としています。ぜひご協力ください

WindowEventHandlers.onstorage プロパティは、storage イベントが発火した際に実行するイベントハンドラーを含みます。これは、ストレージ領域が変更されたとき(たとえば、新しい項目が保存されたとき)に発生します。

構文

windowObj.onstorage = function() { ... };

window.onstorage = function(e) {
  console.log('The ' + e.key + ' key has been changed from ' + e.oldValue + ' to ' + e.newValue + '.');
};

仕様

仕様 ステータス コメント
WHATWG HTML Living Standard
onstorage の定義
現行の標準  

ブラウザー実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
基本サポート ? 45 (45) ? ? ?
機能 Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
基本サポート ? ? 45.0 (45) ? ? ? ? ?

ドキュメントのタグと貢献者

 このページの貢献者: YuichiNukiyama
 最終更新者: YuichiNukiyama,