Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q32 How can I create a message window using the open command?

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>

Feedback on 'Q32 How can I create a message window using the open command?'

©2018 Martin Webb