16.19 showmodaldialog方法.html
来自「即学即用JavaScript核心对象参考手册原版光盘」· HTML 代码 · 共 18 行
HTML
18 行
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<script>
var sFeatures;
var para;
para="<br>this is a test<br>showModalDialog方法测试" ;
para=para+"<br>在关闭该窗口以前,其他窗口无法获得焦点";
sFeatures="center=yes;edge=raised;status=yes;";
sFeatures=sFeatures+"dialogHeight=250 px;dialogWidth=250 px";
window.showModalDialog("dialog.html",para,sFeatures);
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?