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

Q1654 Is it possible to print a popup window?

You are here: irt.org | FAQ | JavaScript | Print | Q1654 [ previous next ]

Try:

<script language="JavaScript"><!--
var windowReference = window.open('popup.htm','windowName','width=400,height=400');
//--></script>

<form>
<input type="button" value="Print contents of popup" onclick="if (window.print) windowReference.print()">
</form>

©2018 Martin Webb