欢迎光临
我们一直在努力

javascript自定义模式对话框_javascript教程

建站超值云服务器,限时71元/月

<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

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » javascript自定义模式对话框_javascript教程
分享到: 更多 (0)