Form JavaScript Tutorial

The onSelect event handler is fired when the text in the box is highlighted.