Main Content

Adding a button to a web page to print the page

Archive - Originally posted on "The Horse's Mouth" - 2008-06-18 17:56:39 - Graham Ellis

How to add a "print me" button on your web page which (err) lets you print your web page ;-)

<form>
<input type=button value="Print me!" onClick="javascript:window.print()">
</form>


Here it is to try out: