<html>
<head>
<script type="text/javascript">
function put()
{
txt=form1.selectPro1.options[form1.selectPro1.selectedIndex].value
document.forms[0].favorite.value=txt
alert(txt);
}
function put1()
{
alert(form1.selectPro1[0].value);
}
</script>
</head>
<body>
<form name="form1">
Select your favorite browser:
<select name="selectPro1" οnchange="put1()">
<option value="1" selected>Internet Explorer</option>
<option value="2">Netscape</option>
<option value="3">Opera</option>
</select>
<br /><br />
Your favorite browser is: <input type="text" name="favorite" size="20">
<select name="select2" size="10" style="overflow-y:auto;WIDTH:128px;margin:-2px;"
οnchange="alert(document.forms[0].select2.options[document.forms[0].select2.selectedIndex].text);">
<option> ????</option>
<option> ??????</option>
<option> IT??</option>
<option> ????</option>
<option> ??????</option>
<option> IT??</option>
<option> ????</option>
</select>
</form>
</body>
</html>