Html Tips and Tricks

Monday, June 14, 2004

Javascript: Print This Page

This html tip will put the page on paper.
The code for a print this page link is:
<a href="#"
 onkeypress="javascript:if (window.print !=
null)window.print();return false"
 onclick="javascript:if (window.print !=
null)window.print();return false"
 title="Print this Page - or select File and Then Print from your
browsers menu">Print
This Page</a>

If that code is copied and pasted onto one line, it will create a link like this:
Print This Page
Now you can have viewers print your pages!


NEED EXTRA HELP? HAVE A SUGGESTION? HAVE SOMETHING TO ADD? PLEASE POST COMMENTS WHILE LOOKING AT ALL THESE USEFUL HTML TIPS AND TRICKS. THANK YOU!

9 Comments:

Post a Comment

<< Home


Hit Counter