<HTML>
<Head>
<SCRIPT type = "text/JavaScript">
Function Change (list)
{
VaR array;
VaR idx;
For (VAR I = 0; I <list. length; I ++)
{
If (list. Options [I]. Selected)
{
// Add to array here Sorry cant remember how
Idx = I;
}
}
VaR value = List. Options [idx]. value; // list. Length-array. length;
Form1.textbox. value = value. tostring ();
}
</SCRIPT>
</Head>
<Body>
<Form ID = "form1" name = "form1">
<Select name = "ListBox" size = "6" onchange = "Change (this. Form. ListBox)">
<Option value = "blah"> 1 </option>
<Option value = "blah2"> 2 </option>
<Option value = "blah3"> 3 </option>
<Option value = "blah3"> 3 </option>
<Option value = "blah3"> 3 </option>
<Option value = "blah3"> 3 </option>
<Option value = "blah3"> 3 </option>
<Option value = "blah3"> 3 </option>
<Option value = "blah3"> 3 </option>
<Option value = "blah3"> 3 </option>
</SELECT>
<Input type = "text" name = "textbox" value = "">
</Form>
</Body>
</Html>