|
By Eddy R.
7-24-00
You've made your web site accessible enough, and now you want add
a feature that will allow your audience to print your web documents,
but there is a small problem; you don't know how to implement this
feature. Well, don't despair because I'll show you how to add Print
capabilities to your web documents in three easy ways.
Note that the lines of code below must go in the Body of
your web document.
Text
<a href="#" onClick="window.print();return
false">Click here to
print this page</a>
See it in Action
Button
<form>
<input name="Print" onClick="window.print();return
false" type="button" value="Print">
</form>
See it in Action
Image
<a href="#" onClick="window.print();return
false"><img src="your_image_file.gif"
alt="Click here to Print" border="0" width="88"
height="31"></a>
See it in Action
As you can see, it doesn't take much to implement the Print
feature. You should also note that every time someone clicks on
the print text/button/image, the entire page will be printed - including
graphics, etc. If you want make it so that only text is printed,
you might want to take a look at Printer
Friendly Pages for a couple of tips that will help you print
text only.
|