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


andrew1234
10-09-2003, 09:31 AM
javascript:window.print()

on a href


how do i make it print another page from the page i'm on.

eg I want to print hary.htm from fred.htm

my print button must be on fred.htm but print hary.htm( not open at all)

thanks

Andrew

Khalid Ali
10-09-2003, 09:49 AM
few important pre-requisites,

1. The second page has to be a child window of the parent window.

2. The second page has to be opened and adocument loaded.

if both of the above are true then
fromparent window

childWin.print();

requestcode
10-09-2003, 09:58 AM
I found this info that might be useful:
http://www.faqts.com/knowledge_base/view.phtml/aid/14803