x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>蜜蜂教程(mifengjc.com)</title>
6
<script>
7
function openWin() {
8
myWindow = window.open('', '', 'width=200,height=100');
9
myWindow.document.write("<p>这是'我的窗口'</p>");
10
myWindow.focus();
11
}
12
</script>
13
</head>
14
<body>
15
16
<input type="button" value="打开窗口" onclick="openWin()" />
17
18
</body>
19
</html>