Using JavaScript to Search For and Highlight Text on a Web Page

This is a test page used to test word and phrase highlighting. SeArChEs aRe nOt cAsE-sEnSiTiVe. Text within HTML tags are ignored.

Examples:

Clear highlighting

highlight a word
highlight 2 words
highlight 3 words

highlight a phrase
highlight 2 phrases

highlight 2 words and 2 phrases