<script language=javascript>
        function openDialogWin()
        {
            var result = window.showModalDialog("ShowMessage.aspx","","dialogHeight:160px; dialogWidth:300px; status:no; help:no; scroll:no");
            //window.show('ShowMessage.aspx', '','height=300, width=400, top=250, left=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no','_blank');
            if(result == "Yes")
                window.alert("You Clicked Yes!");
            else if(result == "No")
                window.alert("You Clicked No!");
            //document.writeln(result);
        }
    </script><input type=button value="按钮" name="btn" onclick="openDialogWin()" />            Response.Write("<script language='javascript'>");
            Response.Write("function confirm(){ window.returnValue='Yes';window.close(); }");
            Response.Write("function cancel(){ window.returnValue='No';window.close(); }");
            Response.Write("</script>");
            Response.Write("<div align='center'><input type='button' value='Yes' onclick='confirm()' /><input type='button' value='No' onclick='cancel()' /></div>");

http://www.cnblogs.com/maxianghui/archive/2006/09/18/507421.html

相关文章:

  • 2021-11-14
  • 2021-09-13
  • 2021-10-05
  • 2022-01-29
  • 2021-12-09
  • 2021-09-21
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2021-10-13
  • 2021-10-09
  • 2021-05-20
  • 2021-07-09
相关资源
相似解决方案