You are here: irt.org | FAQ | JavaScript | Print | Q1497 [ previous next ]
Try:
<script language="JavaScript"><!-- if (window.print) { text = document.mxForm.myTextarea.value; winId = window.open('','newwin'); with (winId.document) { write('<body onLoad="window.focus();window.print()"><pre>'+text+'</pre><\/body>'); close(); } } //--></script>