C H A P T E R  17

Printing, Counting, and Redirecting

As the title suggests, this chapter provides practical methods for implementing the following four utilities:

  • Page printing
  • A do-it-yourself (DIY) visitor counter
  • A Google Analytics visitor counter
  • Redirecting

I’ll start by examining how the pitfalls of printing from the browser toolbar can be avoided and how a user can save ink and paper. Then you’ll see how to create a visitor counter. Finally, I’ll describe ways of redirecting to another page, or to another location on the same page, or to another web site.

Page Printing

A page can be printed from a web site page without a special style sheet by using either the printer button on the browser toolbar, or a page printer button inserted ...

Get Practical HTML5 Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.