J
Joris De Groote
Hi,
I would like to add a javascript to my aspx file so that users can print
that page. I have some javascript for this:
<SCRIPT LANGUAGE="JavaScript">
if (window.print) {
document.write('<form>Click Here To '
+ '<input type=button name=print value="Print" '
+ 'onClick="javascript:window.print()"> This Page!</form>');
}
</script>
(this shows some text and a button wich you can click to print).
However, when I place the code in aspx (on the html part in body), it just
doesn't work? How can I get this to actually work?
Thanks
I would like to add a javascript to my aspx file so that users can print
that page. I have some javascript for this:
<SCRIPT LANGUAGE="JavaScript">
if (window.print) {
document.write('<form>Click Here To '
+ '<input type=button name=print value="Print" '
+ 'onClick="javascript:window.print()"> This Page!</form>');
}
</script>
(this shows some text and a button wich you can click to print).
However, when I place the code in aspx (on the html part in body), it just
doesn't work? How can I get this to actually work?
Thanks