O'Reilly logo

Practical HTML5 Projects by Adrian W. West

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required