Willy, I don't know on what planet 'thre'=='three' but, here on earth and in IE6 , NS7.2 and FF they don't and my script works without mistaking 'thre' for 'three'. It will however mistake 'threee' for 'three', except for this slight mod:
which will prevent that error.
numbers = new Array("one","two","three","four","five");
alert('Three is in numbers!')
Bill, I've just gotten into the habit of always using == in conditionals. I saw somewhere that it is called for (certainly for testing equal) in some cases even when testing for not equal. The distinction seemed hard to remember but, since it also works when the more common != does, I figured - what will it hurt?