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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.