<title>弹出窗口</title> <script type="text/javascript"> function openNewWindow() { window.open("adv.html", "广告窗口", "toolbar=0, scrollbars=0, location=0, status=0, menubar=0, resizable=1, width=780, height=240"); /* width:弹出窗口的宽度 height:弹出窗口的高度 top:弹出窗口离屏幕顶部距离 left:弹出窗口离屏幕左边距离 */ }
</script> </head>
<body> <input type="button" value="打开一个新窗口" onclick="openNewWindow()"/>
</body>