Ok, here's a recent version of a script I've been playing with. Essentially, it 'autocompletes' a selection list. What I would like to know is what browsers & which versions it works / crashes on.

Please note it includes new properties for the selection list (userWord & userWord2) and a method within the autoSelect() object

If you decide to swipe the code for your own use -- go ahead -- but please keep my name & url there -- I'm hoping to get it up on my site with full explanation before the end of the weekend.

Test by find "New York" (spaces important) It times out, and backspace resets

Thanks
Vinny
Code:
<html>
<head>
<script language="javascript">
<!--
/* ------------------------------------------------------
author: Vincent Puglia, GrassBlade Software
site: http://members.aol.com/grassblad
--------------------------------------------------------- */
function autoSelect(selObj)
{
if (typeof selObj.userWord == 'undefined')
{
selObj.userWord = "";
selObj.userWord2 = "";
}

if (typeof this.clearit == 'undefined')
{
this.clearit = function()
{
if ( selObj.userWord2 == selObj.userWord)
{
selObj.userWord = selObj.userWord2 = "";
selObj.options[0].selected = true;
}
else 
selObj.userWord2 = selObj.userWord;
setTimeout("this.clearit()", 5000)
}
setTimeout("this.clearit()", 5000)
}
if (event.keyCode == 8)
{
selObj.userWord2 = selObj.userWord = ""; 
selObj.options[0].selected = true;
selObj.options[0].focus(); 
return;
}
thekey = String.fromCharCode(event.keyCode);
selObj.userWord += thekey;
for (var i = 0; i < selObj.options.length; i++)
{
var txt = selObj.options[i].text.toUpperCase();
if (txt.indexOf(selObj.userWord) == 0)
{
selObj.options[i].selected = true;
selObj.userWord2 = selObj.userWord;
break;
}
}
}
//-->
</script>
</head>
<body onload='document.a.mySelect.focus()'>
<form name="a">
<select name="mySelect" onKeyup="autoSelect(this)">
<option value="AL">Alabama</option>
<option value="DE">Delaware</option>
<option value="NB">Nebraska</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
</select>
</form>
</body>
</html>