Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing

Status
Not open for further replies.

CliffLandin

Programmer
Nov 14, 2004
81
US
I have a site that has a petition on it. I am trying to create a link to Print the list. I have seen a couple of examples of how to do it using javascript, but I thought that there is probably a way to do it using HTML. I may be wrong, but I guess we will see. If you would like to see the petition go to I just created it last night so there may only be one signature on it. If you want to sign it mouseover the Home link at the top and click on Sign Petition.

Thanks.

When in doubt, go flat out!

 
HTML has no printing capabilities as it is only a markup language. However, there is a simple JavaScript command which prints the page, print():
Code:
<a href="#" onclick="window.print(); return false;">Print</a>
This does the same as the print button in client's browser's toolbar or File->Print or whatever technique they use for printing pages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top