<html>
<head>
<title>打开和关闭窗口</title>
</head>
<script language="VBS">
<!-
Sub Openw
window.open "http://www.china.com","OpenClose",_
"Toolbar=no,Menubar=no,Left=100,Right=100"
End Sub
Sub Closew
window.close
End Sub
->
</script>
<body>
<div align="center">
window对象的open方法和close方法
<BR>
<p>
<input type="button" value="打开页面" onclick="Openw">
</p>
<input type="button" value="关闭页面" onclick="Closew">
</div>
</body>
</html>