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

Feedback on: irt.org FAQ Knowledge Base Q73

irt.org | About | Feedback | 1680 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q73

Sent by
Ken Tholke on August 27, 2000 at 03:46:43:

Worth:
Worth reading

Technical:
Just right

Comments:
I wrestled with this problem for nearly a week. Steve's solution reminded me that when you try to print from another frame, the frame you last clicked in is the frame with the focus. The following is what I came up with that works for IE4+, as well as NN4, using a standard three frame set-up ( as shown below ).


<HTML>
<HEAD>
<TITLE>Parent Frame</TITLE>
</HEAD>
<FRAMESET rows="90, *">
<FRAME name="header" src="name.html">
<FRAMESET cols="18%, 82%">
<FRAME name="navigator" src="another_name.html">
<FRAME name="display" src="still_yet_another_name.html">
</FRAMESET>
</FRAMESET>
</HTML>

Again, the key is to put the focus on the frame that is supposed to be printed, by invoking "focus()" first.


<HTML>
<HEAD>
<TITLE>Navigator Frame</TITLE>
</HEAD>
<BODY>
<FORM NAME="PrintA">
<INPUT TYPE="button" NAME="PrintB" VALUE=" Print " onClick = "window.display.focus(); window.display.print()">
</FORM>
</BODY>
</HTML>


Other feedback on 'irt.org FAQ Knowledge Base Q73' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.