使用prototype时,将如何取得confirm提示框的返回值?
  function openConfirm() {
    Dialog.confirm("Add your <b>HTML</b> message here<br/>Better than a classic javascript alert?", 
                   {top: 10, width:250, className: "alphacube", okLabel: "Yes", cancelLabel:"No"})
  }请使用过的网友帮解决一下,谢谢。

解决方案 »

  1.   

    var rVar = Dialog.confirm("Add your <b>HTML</b> message here<br/>Better than a classic javascript alert?",
    {top: 10, width:250, className: "alphacube", okLabel: "Yes", cancelLabel:"No"});
    alert(rVar);
      

  2.   

    function openConfirm() {
        return Dialog.confirm("Add your <b>HTML</b> message here<br/>Better than a classic javascript alert?", 
                       {top: 10, width:250, className: "alphacube", okLabel: "Yes", cancelLabel:"No"});
      }
      

  3.   

    再顶一下,楼上两位估计就没有用过prototype 中的Dialog.confirm。希望有经验者给点建议。