WebBuilder101 - Making the web happen!
Need Web Dev software? Here is the place to
Flash Point
Adding the Print Feature

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.

.

 

More Resources
Printer Friendly Pages
SSI how to...
SSI
Accessibility and Usability
Creating Forms
Creating Image buttons

Suggested Reading

Beginning Active Server Pages 3.0
JavaScript Bible
Red Hat Linux
Dreamweaver 3.0
HTML Bible



Download WB101 Wallpaper
• Web Builder 101 Wallpaper Get it!.
• Find out how to create your own Wallpaper Teach me!.
Sign up for our Newsletters
• Web Building Sign me Up!.
• Net Alert! Sign me Up!.
Need Help?
• Contact Support Click here.
• E-mail the Webmaster Click Here.
• Search Tips Click Here.

Webbuilder101.com © 1998 - 2003 Copyright and Terms of Use
Send mail to: webmaster@webbuilder101.com

» About » Support

» FAQ » What's New » MyLog

Web Builder 101 Web Builder 101 - Making the Web Happen Web Builder 101 - Making the Web Happen
.