Which browser is your favorite?

Select your favorite browser:

Your favorite browser is:

<SCRIPT>

function check(form, select) {
     // var browser = select[select.selectedIndex].text;
     // form.favorite.value = browser;

     form.favorite.value = select[select.selectedIndex].text;
}

</SCRIPT>

<FORM>

Select your favorite browser:
<SELECT NAME="dropdown" onChange="check(this.form, this)">
    <OPTION></OPTION>
    <OPTION>
Internet Explorer</OPTION>
    <OPTION>
Netscape Navigator</OPTION>
</SELECT>

Your favorite browser is: <INPUT TYPE="text" NAME="favorite">

</FORM>