用构造函数?什么又是  覆盖 window.alter 方法?

解决方案 »

  1.   

    <iframe style="display:none" name=if0 ></iframe><input type=button value="autoCloseAlert"
    onclick="autoCloseAlert('ppp',1000);"><SCRIPT>
    function autoCloseAlert(msg,iMilliSeconds)
    {
    if0.showModelessDialog("javascript:alert(27);window.close();");
       setTimeout("if0.location.reload();",iMilliSeconds);
    }
    </SCRIPT>
      

  2.   

    直接写:
    function alert(msg)
    {
       window.showModalDialog('popupmsg.htm', msg);
    }
    放在页面可访问的script中即可。