Add Simple Print Button to Website

Learn to add print button on your website

Add this code after where you want to show print button on your website
<input type=”button” value=”Print Now” onclick=”window.print();”>

You can use JavaScript to automatically open print dialogue box so that users can print the page. Although most users know they can do something like “File > Print”, a “Print Now” option can be nice, and may even encourage users to print the page. Also, this code can be triggered automatically upon loading a printer friendly version.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.