window.opener.location is null in IE. Works fine in Chrome.
<pre><code> Response.Write("&lt;script language='javascript'&gt;alert(window.opener.location.pathname); if(window.opener.location.pathname.toString() == \"/page.aspx\"){window.opener.document.forms[0].submit();}&lt;/script&gt;");
</code></pre>

<p>This works in Chrome, but in IE I get a mass javascript runtime error saying location is null, seems its somehting to do with opener.</p>

<p>What is the equivalent in IE? </p>
