弹出自定义模式对话框

xiaoxiao2022-06-12  34

<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" οnclick="openDialogWin()" />  相关资源:创建自定义对话框dialog,弹出模式窗口
转载请注明原文地址: https://www.6miu.com/read-4933431.html

最新回复(0)