不解,不调用alert or confirm不就行了吗?

解决方案 »

  1.   

    iframe 里的内容不是我能说了算的……
      

  2.   

    按你所说地应是无解了是浏览器决定地(比如现在xp sp2就有这种默认拦截功能)用框架来说
    如果父窗口允许弹出窗口,那么子窗口也是继承地
      

  3.   

    如果iframe中的网页,不和你的文件在同一域内,IE不允许访问iframe中的控件属性,也就无办法操作!
      

  4.   

    嵌入页得跟主页在一个域才行<iframe id="kao" src="test.html" style="width:600px; height:400px">
    </iframe>
    <br>
    <input type="button" onclick="kao.alert()" value=" 嵌入页alert() ">
    <input type="button" onclick="kao.alert=function(){return false}" value=" 使嵌入页alert失效 ">
    <input type="button" onclick="kao.alert=kao.confirm" value=" 使嵌入页alert变成confirm ">