我自己找到了,用confirm就可以了,对吗?

解决方案 »

  1.   

    是不是这样的对话框
    function populateTable(){
      var howmany=prompt("Fill in table for how many?")
      if(howmany != null && howmany !=""){
         alert("Filling the table for"+ howmany)
      }
    }
      

  2.   

    各位兄弟,问一下javascript函数中能否嵌入jsp代码
    我这里不行啊
      

  3.   

    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)
      

  4.   


    javascript中的alert功能是最单一的,什么多余的功能都没有。