Companies and individuals are doing great efforts to print less and “go green”. However, as a web developer, you may still want to add a print option on your website. Printing out a webpage is still often used on some types of website, so offering an easy to use button or link is a good practice for your visitors.
Add the following HTML and JS code to your website or blog:
<a href="#" onclick="window.print();return false;" title="Click to print this page">Print this page</a>
<a href="#" onclick="window.print();return false;" title="Click to print this page"><img src="printer.png" /></a>