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!

maintain pop-up position after print()?

Status
Not open for further replies.

raindogs

Programmer
Nov 23, 2005
27
US
I have a page with popup windows that all have print() links in them. When I click "print" in the pop-up, the print dialog comes up just like it should, but the pop-up window is pushed to the back. What I would like to do is make sure that the pop-up is still on top after the user prints. Is it possible to call the focus() command automatically after the print dialog ends? Barring that, I wonder if I can call focus() on the pop-up but pass it an argument so that it's only relative to its parent window.

This is a little beyond my current knowledge of JavaScript, but I can't believe I'm the only one who has ever wanted to do something like this. Any help would be much appreciated.

Thanks,
Alex
 
How are you executing the print method? I've not tried it, but it seems strange to me that simply calling "window.print()" would cause a popup to be put behind another window.

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top