programming-examples/js/Others/A Main Window Document.js

22 lines
426 B
JavaScript
Raw Normal View History

2019-11-15 12:59:38 +01:00
<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>