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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print part of page

Status
Not open for further replies.

dance

Technical User
Nov 6, 2002
142
US
Is is possible to have a visitor to the website click on a hyperlink or something similar that will cause a portion of the page to print on his printer?
 
Yes, however it's not a straight forward operation. You create a print button: <input type=button value=&quot;Print&quot; onClick=&quot;window.print()&quot;> but rather need to use CSS to hide all elements you don't want printed. Meander over to the HTML/CSS forum for using CSS to hide elements in a function prior to printing.

DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top