title: Javascript to disable onload function inside an iframe
body: <p>I have an iframe on my web page, the source url is a remote web page I don't have access to, the problem is that in that iframe body onload event, there is a JS function:</p>
  
  <pre><code> &lt;body onload="if(top!=self) top.location.href=location.href"&gt;
  </code></pre>
  
  <p>so that will change my webpage to their webpage url. is there anyway I can use javascript on my web page to disable or rewrite the body onload function in that iframe? I think that is different from the iframe onload event.</p>