Add Simple Print Button to Website - Tutorials & Guide | For Software, Android and Web Development

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.

No comments:

Post a Comment

1. Don't make SPAM comment.
2. Don't try to make backlinks in comment text.
3. Use Name/URL, Google profile or Anonymous option.
4. Ask your problem.