Highlighting Words in a Textarea with JavaScript

This script serves to demonstrate cross-browser techniques in programatically changing the selection of a textarea element. It works in Firefox, IE5+/Win, Opera 8+, and Netscape 7.1+.

Demonstration


Last update: 2006-10-29