Opening & Closing Child Windows

<SCRIPT>

function openWindow() {
     var newWindow = window.
open('', 'newWin',
            'toolbar=yes,location=yes,scrollbars=yes,width=300,height=200')
}

</SCRIPT>

<BODY>

NOTE: by clicking on the first link you are calling the function openWindow() to open a new window

<A HREF="javascript:openWindow()">Open a new window</A>

NOTE:  by clicking on the second link the newWindow is closed by using the window method close()

<A HREF="javascript:newWindow.close()">Close the window</A>