chrismassey
Programmer
Hello,
I have a javascript print button which prints the contents of the window... However I want it to print the contents of the i-frame its placed above. I would put it inside the i-frame however I want this print button to appear no matter whats in the i-frame... Heres the orignal button...
However the button will print the whole window... So I tried this...
Although this does not work.
Any suggestions?
Thank you
I have a javascript print button which prints the contents of the window... However I want it to print the contents of the i-frame its placed above. I would put it inside the i-frame however I want this print button to appear no matter whats in the i-frame... Heres the orignal button...
Code:
<A HREF="javascript:window.print()><font face="Arial" size="2"><b>Click Here To Print</b></font></A><iframe src ="$i_frame_url" width="100%" height="100%" frameborder="0" name="contentframe"></iframe>
However the button will print the whole window... So I tried this...
Code:
<A HREF="javascript:window.print().target="contentframe"><font face="Arial" size="2"><b>Click Here To Print</b></font></A><iframe src ="$i_frame_url" width="100%" height="100%" frameborder="0" name="contentframe"></iframe>
Although this does not work.
Any suggestions?
Thank you