Unobtrusive 'Print This Page' Link | JavaScriptSource

Unobtrusive 'Print This Page' Link

Roger Johansson Sep 24, 2007

General

This script will add a link to your page for your visitors to print the contents of a stated DIV. If the visitor does not have JavaScript enabled, the link will not display, so as not to confuse them.


Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

Notes

For a more in-depth discussion, visit the original article.

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: addprintlink.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(0 comments)