window.name storage for a named window in <=IE7
<p>I have an application that uses <code>window.name</code> as a fallback storage to <code>sessionStorage</code>.</p>

<p>Example (simplified for brevity):</p>

<pre><code>function setData(data){
  window.name = JSON.stringify(data);
}
function getData(data){
  return JSON.parse(window.name);
}
</code></pre>

<p>This all works fine and dandy in just about all browsers. However, I have recently discovered that this DOES NOT work in IE7 and below when the window is launched with a target.</p>

<pre><code>&lt;a href="winning.html" target="bob"&gt;winning.html&lt;/a&gt;
</code></pre>

<p>If I launch the <code>winning.html</code> file from the above <code>A</code>, using IE7, <code>getData</code> will always return "bob", regardless of what we try to set through <code>setData</code>.</p>

<p>If I modify the launch link like so (remove the target), it will set and remember data correctly.</p>

<pre><code>&lt;a href="winning.html"&gt;winning.html&lt;/a&gt;
</code></pre>

<p>The problem is that I do not always have control of that originating link. Is there any way around this?</p>
