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="100%,*">
<frame src="controlpage.html">
<frame src="pagetoprint.html">
</frameset>
-------------------------------------
<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>
-------------------------------------
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
<frameset rows="100%,*">
<frame src="controlpage.html">
<frame src="pagetoprint.html">
</frameset>
-------------------------------------
<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>
-------------------------------------
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