You are here: irt.org | FAQ | JavaScript | Window | Q32 [ previous next ]
<script language="JavaScript"><!-- function windowOpener() { msgWindow=window.open("","displayWindow","menubar=yes,scrollbars=yes,status=yes,width=300,height=300") msgWindow.document.write("<head><title>Message window<\/title><\/head>") for (var i=0; i < 10; i++) msgWindow.document.write('Message number ' + i + '<br>'); } //--></script> <form> <input type="button" value="Message Window" onClick="windowOpener()"> </form>