<script language="javascript">
function open_Dialog()
{
var title="模式窗口";
var url="2.htm";
var Width="800";
var Height="1000";
var return_Value;
if (document.all&&window.print)
{
return_Value = window.showModalDialog(url,window,"dialogWidth:" + Width + "px;dialogHeight:" + Height + "px;center:yes;status:no;scroll:yes;help:no;");
alert(return_Value);
}
else
window.open(url,"","width=" + Width + "px,height=" + Height + "px,resizable=1,scrollbars=1");
}
</script>
<body>
<form id="form1">
<input type="button" value="打开模式窗体" οnclick="open_Dialog();">
</form>
</body>
js 弹出窗
最新推荐文章于 2021-03-18 19:03:57 发布