<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>scientre</author_name>
  <author_url>https://blog.hatena.ne.jp/scientre/</author_url>
  <blog_title>メモ用紙</blog_title>
  <blog_url>https://scientre.hateblo.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>HTML 5 で導入された Web Storage ではブラウザに数 MB 程度ほどのデータを保存できる。仕様上は他のタブやウィンドウでデータが変更されると storage イベントが発生することになっているが、ブラウザによっては多少癖のあるものも存在する。各ブラウザの癖を考慮したコードは次の通り。 if (window.addEventListener) { // Modern Browsers, IE 9+ window.addEventListener(&quot;storage&quot;, function() { // IE 9-11 では storage イベントの発生から内容が反映されるまで遅延が…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fscientre.hateblo.jp%2Fentry%2F20141217%2Fsync_webstorage&quot; title=&quot;Web Storage のデータをウィンドウ間で同期する (IE8+) - メモ用紙&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-12-17 00:00:00</published>
  <title>Web Storage のデータをウィンドウ間で同期する (IE8+)</title>
  <type>rich</type>
  <url>https://scientre.hateblo.jp/entry/20141217/sync_webstorage</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
