Checking text in forms

To check whether somebody has entered a particular word or name into a textbox, use this snippet of JavaScript. Enter something in the box and then tab or click off of it. Only Karen (or any phrase including that name) triggers a friendly greeting.

This is a demonstration file from Web Design in Easy Steps by Sean McManus.
Back to demo files index.