Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


JavaScript Programming

JavaScript > Code Examples

A Main Window Document

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
A Main Window Document <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>