Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Print Magic: Using the DOM and CSS to Sa... > Never mind all that—what about savin...

Never mind all that—what about saving the planet?

Ah, that! I said I would return to the topic, which is all about saving paper, avoiding needless printouts. With the piece of JavaScript wizardry you've seen in this chapter doing its thing, users can now print just the part of the page that is of interest to them, and here's the proof. First, Figure 8-14 shows the results of a printout from the page before the script was applied—the "before."

Phew—that's a lot of paper!



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial