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

Printing a frame called from another frame. 1

Status
Not open for further replies.

NikP

Programmer
Mar 1, 2001
18
GB
Hi Guys can anyone tell me how I can print a frame with the PRINT BUTTON being in another frame...

I know you can do window.print() but I have a navigation bar on the left and would only like to print the main body which is another frame but I would like to call the print funciton from the nav bar..thanks


Nik
 
say your frames are frame_to_print (the one you want to print) and frame_with_button (the one with the print button on it)
in frame_with_button :
<input type=button onclick=&quot;document.frame_to_print.print()&quot;>

- not all browser support the print() function
- i'm not sure wheter netscape 6- will find the frame with document.framename
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top