<input type=button value=csdn onclick="vbscript:msgbox 'aaaaaaa',3">

解决方案 »

  1.   

    用showModalDialog自己写窗口
    <script>
     var retStr=showModalDialog("about:<script>window.returnValue=0;function cls(str){window.returnValue=str;window.close();}<\/script><body scroll=no bgcolor=buttonface><table align=center><tr><td colspan=3 style=color:red>请确定你的操作?<tr><td><input type=button value=Yes onclick=cls(1)><td><input type=button value=No onclick=cls(2)><td><input type=button value=Cancel onclick=cls(3)></table>","","dialogWidth:200px;dialogHeight:100px;help:no");
    alert("返回值为"+retStr)
    </script>
      

  2.   

    可能我没有说清楚,我原来有个这样的东东
        if (confrim(是否删除?)==)
        {
           window.open('','window1','')
        }
        else
        {
          window.open('','window2','')
        }
    现在我要找个函数有三种选择答案的实现这个
           if (要问函数(是否删除?)== Y) Y表示确定
        {
           window.open('','window1','')
        }
        elseif (要的函数(是否删除?)== N) N表示否定    {
          window.open('','window2','')
        }
        elseif (要的函数(是否删除?)== C) C表示放弃
        {
          window.open('','window3','')
        }
    其中 要问函数(是否删除?) 就是我要问的函数 象confrim一样使用。复杂的方法我也有。
      

  3.   

    附:http://hacker.vip.sina.com/document/vbscript/164.htm
      

  4.   

    sorry, try this
    <script>
    var retStr=showModalDialog("modal.htm","","dialogWidth:200px;dialogHeight:100px;help:no");
    //alert("返回值为"+retStr);    if (retStr=="Y") //Y表示确定
        {
          window.open('window1.htm','window1','');
        }
        else if (retStr=="N") //N表示否定
        {
          window.open('window2.htm','window2','');
        }
        else if (retStr=="C") //C表示放弃
        {
          window.open('window3.htm','window3','');
        }
    </script>modal.htm
    <script>
    window.returnValue=0;
    function cls(str)
    {
    window.returnValue=str;
    window.close();}
    </script>
    <body scroll=no bgcolor=buttonface>
    <table align=center>
    <tr><td colspan=3 style=color:red>是否删除?</td></tr>
    <tr><td><input type=button value=Yes onclick=cls('Y')></td>
    <td><input type=button value=No onclick=cls('N')></td>
    <td><input type=button value=Cancel onclick=cls('C')></td></tr>
    </table>