gcapp
01-24-2003, 06:21 PM
Can someone help me?
I have this javascript to print a page by clicking a button:
<!-- Begin
if (window.print) {
document.write('<form>'
+ '<input type=button name=print value="Print This Page" '
+ 'onClick="javascript:window.print()"></form>');
}
// End -->
What I am trying to do or find is the same basic thing, but i want it where someone clicks the button and a new window appears taking them to a URL.
I can't seem to get it right - any help??
Gary
I have this javascript to print a page by clicking a button:
<!-- Begin
if (window.print) {
document.write('<form>'
+ '<input type=button name=print value="Print This Page" '
+ 'onClick="javascript:window.print()"></form>');
}
// End -->
What I am trying to do or find is the same basic thing, but i want it where someone clicks the button and a new window appears taking them to a URL.
I can't seem to get it right - any help??
Gary