Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: Javascript Codes Library >> Forms, Radio, Buttons, Check Box >> Print Page JavaScript Button


Code Snippet </> Info


Snippet Name: Print Page JavaScript Button

Description: 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

Note:

Author: SnapBuilder <snippets@snapbuilder.com>

Last Modified: 2015-12-13 06:35:46

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

<!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 http://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>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library