下面的代码不会打印值。
function go(x)
{
alert(x.options.selectedIndex.value);
//location=document.menu.student.options[document.menu.student.selectedIndex].value
}
这是html代码
<select name="student" onChange="go(this)">
<option selected> Student </option>
<option value="http://www.cnet.com">Attendence</option>
<option value="http://www.abc.com">Exams</option>
</select>