我的网页上有一个 iframe,源 url 是我无权访问的远程网页,问题是在 iframe 正文 onload 事件中,有一个 JS 函数:
<body onload="if(top!=self) top.location.href=location.href">
这样我的网页就会更改为他们的网页网址。无论如何我可以在我的网页上使用javascript来禁用或重写该iframe中的body onload功能吗?我认为这与 iframe onload 事件不同。
我的网页上有一个 iframe,源 url 是我无权访问的远程网页,问题是在 iframe 正文 onload 事件中,有一个 JS 函数:
<body onload="if(top!=self) top.location.href=location.href">
这样我的网页就会更改为他们的网页网址。无论如何我可以在我的网页上使用javascript来禁用或重写该iframe中的body onload功能吗?我认为这与 iframe onload 事件不同。