execScript('ret=msgbox("OK")','vbscript')
alert(ret)或者showModalDialog模拟

解决方案 »

  1.   

    谢谢了,怎么用showModalDialog模拟呢
      

  2.   

    showModalDialog模拟大约如下(急忙写的,意会一下就行了)<script>
    var msg="请选择";
    ret=showModalDialog("about:<script>function cls(num){window.returnValue=num;window.close();}<\/script><body bgcolor=buttonface scroll=no><table  width=100%><tr><td>"+msg+"</td></tr><tr align=center><td onclick=cls('1')> Yes </td><td onclick=cls('2')> No </td></tr></table>","","dialogWidth=200px;dialogHeight=100px")
    alert(ret)
    </script>