title: get localstorage item in a iframe
body: <p>I have a file <code>index.html</code> with one iframe set and iframe source points to another domain. I am setting localstorage in <code>index.html</code> and trying to get the value in iframe source.(<code>sample.html</code>)</p>
  
  <pre><code>File 1
  index.html
      &lt;html&gt;
      &lt;head&gt;
      //js file 
      &lt;/head&gt;
      &lt;body&gt;
      setting localstorage
      Iframe src="55.10.45.045/sample.html"
      &lt;/body&gt;
      &lt;/html&gt;
  
  file 2
  sample.html
         &lt;html&gt;
          &lt;head&gt;
          //js file 
          &lt;/head&gt;
          &lt;body&gt;
          getting localstorage Item //Returns null
          &lt;/body&gt;
          &lt;/html
  </code></pre>