title: can I save a window object inside a localStorage
body: <p>Basically I want to open a page with a button, and kill the page with another button.</p>
  
  <p>I think that it saves the page object as text, any way arround that?</p>
  
  <pre><code>&lt;button onClick="initiate()"&gt;open page&lt;/button&gt;
  &lt;button onClick="kill()"&gt;kill page&lt;/button&gt;
  
  
  &lt;script&gt;
  function initiate()
  {
  var w=window.open("https://www.google.com/");
  localStorage.setItem('urlmem', w);
  }
  
  function kill()
  {
  a = localStorage.getItem('urlmem')
  prompt(a)
  a.window.close()
  }
  &lt;/script&gt;
  </code></pre>