index.html<iframe width="200" height="200" src="2.html" id="ifr"></iframe>2.html<SCRIPT>
if (top!= self)top.location=self.location;
alert("我弹出来了!!")
</SCRIPT>
1如何防止iframe页面的alert2如何防止2.html跳出iframe页面
if (top!= self)top.location=self.location;
alert("我弹出来了!!")
</SCRIPT>
1如何防止iframe页面的alert2如何防止2.html跳出iframe页面
var ifr_window=window.frames["ifr"];
ifr_window.window.alert=function(){
//也可以写你想写的东东
};
</script>用这个只能停掉本机的