⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 window对象.htm

📁 JavaScript实例
💻 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>
&nbsp;&nbsp;<input type=submit value="确定" onClick="confSubmit()"></h2>
</form></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -