Print Page JavaScript Button - Give your visitors an easy way to print the web page using this code snippet.
Compatible Modern Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser
Example: View Code Demo
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.1 Transitional//EN"> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Print Page JavaScript Button Code</title> <style> html {margin:0; padding:0;} BODY {font-family:verdana,arial,ms sans serif; font-size:100%; background-color:#ffffff; color:#000000; text-shadow:0px 1px 1px rgba(0,0,0,0.2);} a {color:#69C;text-decoration:none;} a:hover {color:#F60; text-decoration:underline;} #wrapper {margin:0; padding:15px 15px 15px 15px;} </style> </head> <body> <div id="wrapper"> <h3>Print Page JavaScript Button</h3> <p>Give your visitors an easy way to print the web page using this code snippet.</p> <p><b>Example:</b> <script> <!-- Begin Print Page JavaScript Button // == This Script Has Been Found In The https://snapbuilder.com Free Public Codes Library == // if (window.print) { document.write('<form> ' + '<input type="button" name="print" value="Click" ' + 'onClick="javascript:window.print()"> To Print this page!</form>'); } // --> </script> </p> </div> </body> </html>