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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing a hidden frame - compatible with IE on Mac

Status
Not open for further replies.

jeremy9

ISP
Apr 24, 2002
7
Hi, I have found out how to print a hidden frame on most browsers...using a code similar to this:

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


-------------------------------------

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


-------------------------------------

But the problem with this is it will not work for Internet Explorer on Macs. Does anyone have a solution or a work around? Because of the situation I am in, I have to keep the printing information hidden.

Thanks for your help,

Jeremy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top