Q508 How can I print a page which is not the current page, without showing it?
You are here: irt.org | FAQ | JavaScript | Print | Q508 [ previous next ]
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?'
- Wednesday August 8th, 2001 at 23:53:54 - YuYu Tseng
- Tuesday July 3rd, 2001 at 15:04:14 - steve
- Thursday June 21st, 2001 at 16:31:30 - Dale Wilson
- Friday June 8th, 2001 at 21:03:38 - Annie
- Sunday March 25th, 2001 at 22:53:01 - leigh willcox
- Friday January 12th, 2001 at 04:55:40 - Karen Currier
- Friday December 1st, 2000 at 15:25:45 - Andre
- Wednesday November 15th, 2000 at 19:16:47 - David Durose
- Thursday August 10th, 2000 at 08:50:34 - Dave
- Monday April 3rd, 2000 at 14:53:09 - Eric Olson
- Wednesday March 15th, 2000 at 07:56:20 - Diane
©2018 Martin Webb