📄 window对象.htm
字号:
<html>
<head><title>windows对象</title>
<script>
function confSubmit(){
if((ok=confirm("Do you confirm it is true?"))==true){
var nw=open("a.html","nwin","width=500,height=200,toolbar=1");
nw.focus();
nw.document.write("name is:"+parent.document.input_form.nm.value);
nw.document.write("<br>");
nw.document.write("number is:"+parent.document.input_form.phone.value);
}
else
alert("Please come again");
}
</script></head>
<body>
<script>
defaultStatus="This is a window example";
</script>
<center><h1>window example one</h1></center><hr><br>
<form name="input_form"><h2>
Input name:<input type=text name="nm" size=12 value=""><br><br>
Input number:<input type=text name="phone" size=12><br><br>
<input type=submit value="确定" onClick="confSubmit()"></h2>
</form></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -