Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing across frames in IE4

Status
Not open for further replies.

Xopas

Programmer
Sep 16, 1999
8
0
0
US
I hope somebody knows an answer to this.<br>
<br>
This example makes use of Javascript, however, VBScript solutions are more than welcome!!!<br>
<br>
I have two frames. The top frame contains content and the lower frame contains a &quot;print&quot; button. The &quot;print&quot; buttons function is to print the contents of the top frame. The problem is that IE4 does not support the javascript &quot;window.print()&quot; function.<br>
<br>
FRAMESET<br>
&lt;HTML&gt;<br>
&lt;HEAD&gt;<br>
&lt;TITLE&gt;Report Results&lt;/TITLE&gt;<br>
&lt;/HEAD&gt;<br>
&lt;FRAMESET rows=&quot;*,50&quot; border=0&gt;<br>
&lt;FRAME name=&quot;report_display&quot; id=&quot;report_display&quot; src=&quot;../reports/default_report.html&quot; scrolling=&quot;auto&quot;&gt;<br>
&lt;FRAME name=&quot;report_control&quot; id=&quot;report_control&quot; src=&quot;../reports/report_control_frame.html&quot; scrolling=&quot;no&quot;&gt;<br>
&lt;/FRAMESET&gt;<br>
&lt;/HTML&gt;<br>
<br>
PRINT BUTTON<br>
&lt;input type=&quot;button&quot; value=&quot;Print&quot; class=&quot;definedButton&quot; onClick=&quot;window.top.report_display.focus(); window.top.report_display.print()&quot;&gt;<br>
<br>
IE4 and below does support the &quot;focus()&quot; function but not the &quot;print()&quot; function. Does anybody know of another way to print across frames? Any help would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top