How can I prevent the subframe from changing "top.location.href "
<p>There are some pages have such javascript:</p>

<pre><code>&lt;script language="javascript"&gt;
if (top.location != location)
top.location.href = self.location;
&lt;/script&gt;
</code></pre>

<p>If I have a web page with a frame, linked to those pages, when they loaded, the url of the browser will be changed to their urls. I don't want this, what can I do?</p>
