You can easily add a print button to your web page by adding the following code to your HTML document where you want the button to appear: onclick="window.print();return false;" /> print. type="text/css" media="print" /> body {visibility:hidden;} .print {visibility:visible;} Apr 8, 2018