?? 12.23 獲取模式窗口的值.htm
字號:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>無標題頁</title>
<script language="javascript">
function openwin()
{
var url="12.23 獲取模式窗口的值1.htm";
//打開模式窗口,注意模式窗口的樣式
var mydata=showModalDialog(url,null,"dialogWidth:300px;dialogHeight:120px;center:yes;help:No;status:no;resizable:Yes;edge:sunken");
if(mydata)
alert("您輸入的值為:" +mydata.value);
}
</script>
</head>
<body>
<input id="Button1" type="button" value="打開窗口" onclick="openwin()" />
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -