How to workaround same origin problem
<p>The following JS will fail if the URL in mainFrame from <strong>a.abc.com to b.abc.com</strong>.</p>

<p>top.frames["mainFrame"].location.href = "/Users/xuenn.aspx?backUrl=" + top.frames["mainFrame"].location.href.split("?")[0];</p>

<p>This is the error message:
Permission denied for <a href="http://a.abc.com" rel="nofollow">http://a.abc.com</a> to get property Location.href from <a href="http://b.abc.com" rel="nofollow">http://b.abc.com</a>.</p>

<p>Anybody knows how could I workaround this or think of other solutions?</p>
