The "Noob Link" Technical Reference
Pantz.org Index About Homepage
     _                  ____            _       _
    | | __ ___   ____ _/ ___|  ___ _ __(_)_ __ | |_
 _  | |/ _` \ \ / / _` \___ \ / __| '__| | '_ \| __|
| |_| | (_| |\ V / (_| |___) | (__| |  | | |_) | |_
 \___/ \__,_| \_/ \__,_|____/ \___|_|  |_| .__/ \__|
                                         |_|
                    
Put all of the code examples from the links below between these script tags.
<script language="JavaScript">
<!--

//-->
</script>
Close a window from a link or checkbox (or button,etc)

<input type="checkbox" name="checkOne" onClick="window.close()">

<a href="close.html" onClick="window.close()">click here to close window</a>
Open a window.

window.open('whatever.html','whatever','width=300,height=610,resizable=no,scrollbars=yes');
On window open bring to top and in front.

<BODY onBlur="self.focus()"> <body>
This redirects an html document or link back to the page that a pop window opened from. Then closes the popup.

function DoStuff()
{
    opener.location.href = 'foo.html';
    window.close();
}