| Author |
adding a page link to a js print page
|
Penelope Motler
Greenhorn
Joined: Apr 16, 2004
Posts: 1
|
|
I am having trouble trying to attach a link to open another page, to a javascript print button. As the page is written on the fly I have added it underneath the function makeWin. i.e. var text="&It;script language=javascript>function printPage() { print(document); }&It;/script &It; Then after writing the page I added. &It;input value='Click to Print Page' name=Print type=button on Click=javascript rintPage()&It;"; Before closing with: customWin = window.open("","customWin","width=790,height=500,left=10,top=5,scrollbars=yes,resizable=no"); customWin.document.open(); customWin.document.write(text); customWin.document.close(); I can have the page open and the print button works, but I would like to add a link to direct people to another page after pressing print. I have no idea where to put the link, I have tried everywhere I can think of and get error messages I don't know what I am doing wrong. Your help would save my sanity.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
onclick = "window.print();document.location.href='blahUrl'"; onclick = "window.print();window.open('blahUrl')"; but I think that might interfer with the printing of the page, not sure...
|
 |
 |
|
|
subject: adding a page link to a js print page
|
|
|