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

Feedback on: irt.org FAQ Knowledge Base Q73, August 27, 2000 at 03:46:43:

You are here: 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

©2018 Martin Webb