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

Printing child windows

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I have a window which has been launched from another via the open method.
I have noticed that when one tries to print from a window such as this, that the parent window is the one that gets printed!

Can somebody tell me why this happens and how to get around it.
I need to have the window as a child because I am writing data to it from the parent, as form confirmation.

thanks in advance! Ben.
 
mywin = window.open("")

by doing that, mywin holds a reference to the window you opened. now you can do anything, including printing by prefixing mywin to your method calls. (e.g. mywin.print()) jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top