Click to See Complete Forum and Search --> : print another website from link
jrthor2
07-21-2003, 12:30 PM
Is it possible to have a link print another website withou showing that website to the user? If so, could you show me how? I know how to print the current window using window.print, but I would like to click a link and have it print out a different website address.
Thanks
Nevermore
07-21-2003, 12:37 PM
The only way to do this would be to work around the limitations of JavaScript:
1) Open another window with the requested URL in.
2) Immediately give focus to the main window so that the window is not seen.
3) Print the contents of the window.
4) Close the window.
I think that is about the least intrusive way of doing it, since just open, print, close will let the user see the page.