Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q508 How can I print a page which is not the current page, without showing it?

irt.org | Knowledge Base | JavaScript | Print | Q508 [ previous next ]

Q508 How can I print a page which is not the current page, without showing it?

Load it into a hidden frame, and then in Netscape Navigator 4 or Internet Explorer 5 beta 2+ use window.print(). For example:

<frameset rows="100%,*">
<frame src="controlpage.html">
<frame src="pagetoprint.html">
</frameset>

In controlpage.html:

<script language="JavaScript"><!--
if (window.print)
    document.write('<form><input type="button" value="Print" onClick="parent.frames[1].focus();parent.frames[1].print()"><\/form>');
//--></script>

Feedback on 'Q508 How can I print a page which is not the current page, without showing it?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.