[thelist] JavaScript: Print Then Close

Lee Kowalkowski lee.kowalkowski at lycos.com
Fri Jan 13 05:25:11 CST 2006


> From: Casey <aspnet at thecrookstons.com>
> 
> It's easy to send a window to the printer with Javascript, and it's just as
> wasy to close a window when a user clicks a "close window" link, but what I
> need is this: from a parent page, a user clicks on a link which opens a new
> window, prints it, and then closes it without any user ineraction other then
> clicking on the one link in the parent window.
> 
> It's all working but closing the new window:

Works fine for me, except I get the confirmation message for closing.  If you're IE only you can try a window.opener = null before your window.close() to prevent the confirmation message.  You don't need "this" before window.

- LK


-- 
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10




More information about the thelist mailing list