做不了吧,用东西自己模拟一个差不多
我模拟过一个alert,跟confirm样子差不多,加点代码就行了,需要给我住处

解决方案 »

  1.   

    <!--a.htm-->
    <script language="JavaScript">
    <!--
    function Alert(strText){
    var pWin=window.showModalDialog("b.htm",strText,"dialogHeight:116px; dialogWidth:232px; help: No; resizable: no; status: No; scroll:no; dialogTop:"+(screen.height-116)/2+"px; dialogLeft:"+(screen.width-232)/2+"px;");
    }
    Alert("真的要删除吗?");
    //-->
    </script><!--b.htm-->
    <html>
    <head>
    <style type="text/css">
    body{ }
    td,input{ font-size:12px}
    </style>
    <script language="JavaScript">
    <!--
    var str  =  window.dialogArguments;
    function doOk(){
    window.returnValue="yes";
    window.close();}
    function doCancel(){
    window.returnValue="no";
    window.close();}
    var timer=null;
    function setTimer(){
    timer=window.setTimeout("doOk()",3000);
    }
    //-->
    </script>
    <title align="center">--==提示信息==--</title>
    </head>
    <body style="background-color:buttonface; margin:0" onload="setTimer();">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
    <tr height="65%">
    <td width="25%" align="center" valign="center"><img src="warning.gif" style="width:32px; height:32px"></td>
    <td valign="middle">
    <script language="JavaScript">
    <!--
    document.write(str);
    //-->
    </script>
    </td>
    </tr>
    <tr height="35%">
    <td colspan="2" align="center" valign="top">
    <input type="button" id="btnOk" value="  确定  " onclick="doOk()">
    <input type="button" id="btnOk" value="  取消  " onclick="doCancel()">
    </td>
    </tr>
    </table>
    </body>
    <script language="JavaScript">
    <!--
    document.onclick=function (){
    document.getElementById("btnOk").focus();
    }
    document.body.oncontextmenu=function (){
    document.getElementById("btnOk").focus();
    }
    //-->
    </script>
    <html>放在同一目录下运行,看看是不是你想要的
      

  2.   

    zhaoxiaoyang(梅雪香@hisoft),谢谢
    但你用的是window.showModalDialog呀,是有标题栏的
      

  3.   

    <title align="center">                                                  </title>
    改成够长的格就行了
      

  4.   

    还是有标题栏的,蓝色那东西,难看呀.win2003
      

  5.   

    得了,用div 里面嵌套个iframe模拟吧
      

  6.   

    失望中~~~~
    就是只想要confirm.....