<HTML>
<HEAD>
<TITLE>Main Document</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function newWindow() {
    window.open("http://javascript.happycodings.com/","sub","HEIGHT=240,WIDTH=240")
}
</SCRIPT>
</HEAD>
<BODY>
</FORM>
<INPUT TYPE="button" VALUE="New Window" onClick="newWindow()">
<br>
Text incoming from subwindow:
<p>
Happy Codings :-) JavaScript Code Examples
<br>
</p>
<INPUT TYPE="Text" NAME="entry">
<FORM>
</BODY>
</HTML>