Print Web Page Button

 

Print Web Page Button

The Print Web Page Button code will enable you to add a print button to your web page content you would like your visitors to print.

Example:

 

 

Place the following JavaScript code within your HTML code where you would like the button to appear:

<SCRIPT LANGUAGE="JavaScript">
<!– Begin
if (window.print) {
document.write(‘<form>’
+ ‘<input type="button" name="print" value="Print This Page" ‘
+ ‘onClick="javascript:window.print()"></form>’);
}
// End –>
</SCRIPT>

Change the text indicated in bold to the text that should appear on your print web page button.

If you publish content, such as articles on your web site, this print page button will provide a great way to enable your visitors to print your content.

This concludes the Print Page Button code.

 

 

 

 
Visit the following pages for a wealth of copy and paste codes and tips:

HTML Tips
Copy and paste special effect HTML codes for your web page.

HTML Codes
An HTML codes chart you can use to copy and paste codes into your web page.

HTML Color Codes
An HTML color codes chart you can use to copy and paste color codes into your web page.

JavaScript Codes
Copy and paste special effect JavaScript codes for your web page.

Web Design Tips
Tips, tricks, and special effect codes for your web page.

HTML Tags
A list of HTML tags.

HTML 5 Tags
A list of the latest HTML tags to be developed.

ASCII Codes
Special text characters and code for your web page.