<html>
<head>
</head>
<body>
<form name=form1>
<input type=text name=textbox><br>
<select name=select1 onChange="alert(selection);selection1()">//行6,错误:对象不支持此操作
<option>a
<option>b
<option>c
<option>d
</select>
</form>
<script language=javascript> 
function selection1()
{
 alert("看到了刚才的那个弹出框了么:selection已经是一个对象!");
 document.form1.textbox.value="your chose selection"+(document.form1.select1.selectedIndex+1)
}
 
</script>
<p>大家快帮我看看吧。
</body>
</html>

解决方案 »

  1.   

    名字有问题
    改成sss
    <html>
    <head>
    </head>
    <body>
    <form name="form1">
    <br>
    <select name="select1" onChange="sss();">//行6,错误:对象不支持此操作
    <option>a
    <option>b
    <option>c
    <option>d
    </select><INPUT TYPE="text" NAME="textbox">
    </form>
    <script language=javascript> 
    function sss()
    {
    document.form1.elements['textbox'].value="123"+(document.form1.select1.selectedIndex+1)
    }
     
    </script>
    </body>
    </html>
      

  2.   

    littleboys(littleboys) 说的对,只要方法改个名就好了