Solutions to Common Problems
A number of JavaScript recipes didn’t fit clearly within any of the previous chapters in this section, so I’ve included them here. They offer features such as keeping your copyright notices current each new year; creating a less intrusive in-browser alert window that doesn’t prevent you from accessing the rest of the current document; a function to provide tooltips for any object; the ability to add cursor trails to the mouse pointer; and a way to make a web page touch-enabled for use with tablet computers and other touch devices.
This simple recipe is worth using on any pages where ...

Get Web Developer's Cookbook now with O’Reilly online learning.

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