Click to See Complete Forum and Search --> : print()


ladwolf
11-26-2002, 09:23 AM
Hi,

I noticed the other posting regarding print() and tried the suggestion but it didnt' work. Here is what I am doing:

I am trying to use the print function window.print() by opening a new window and then executing the window.print(). But, I am still having the parent window print, not the child window. Is there something else I need to do so that the child window has focus and the print function knows to print that window?

I tried putting the window name in the window.print("name"), but that didn't work either.

I appreciate your help!

Rick Bull
11-26-2002, 11:10 AM
Try something like this:

var newWin = window.open("LOCATION");
newWin.print();

ladwolf
11-26-2002, 11:29 AM
Hi,

Thanks for your response. I had actually figured it out. But, now I have another issue. I want to close the window that I am opening then printing. But, if I put the close right after the print it closes the print window too...any suggestions for this?

I appreciate your help! Thanks, Lisa