<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<script>
function openWin(){
myWindow=window.open('','','width=300,height=200');
myWindow.document.write("这是新窗口:"+myWindow);
myWindow.focus();
myWindow.opener.document.write("这是原窗口!");
}
</script>
</head>
<body>
<input type="button" value="打开我的窗口" onclick="openWin()" />
</body>
</html>
输入 JavaScript 代码……
xxxxxxxxxx
输入 CSS 代码……