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

How to make a print button; and when click print another browser

Status
Not open for further replies.

TanTrazz

Programmer
Aug 18, 2001
54
NL
Hi all,

Question :

I want to make a print button on a webpage and print the other popup window? how do i do it??

Tnx TanTrazz
 
As long as you name the popwindow when you create it, you can print it...

popWin = window.open("page.htm","winName")

popWin.print()


or even from a second pop window...

window.opener.popWin.print()

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook
 
u can use the popup to print the content of its opener window,
this is striclty experimental:
popuwindowname.print()

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top