<script type="text/javascript">
<!--
function NewWindow( ){
MyExample=window.open("page1.html");}
function CloseIt( ){
MyExample.close( );}
// -->
</script>
</head>
<body>
<form>
<center>
<input type="button" VALUE="Open Page 1" OnClick="NewWindow( )">
</center>
<center>
<input type="button" VALUE="Close this window !" OnClick="MyExample.close()">
</center>
</form>
</body>
</html>