<form name="frmtest">
<select name="selist">
...
</select>
</form>in javascript, you use document.frmtest.selist to reference the list

解决方案 »

  1.   

    我的意思你们没弄明白,例如这样写
    <script language="javascript">
    var s;
    s += "<html><head></head><body>"
    s += "<form name='form1'><select name='select1'><option>"+1+"</option>"
    s += "<option>"+2+"</option>"
    s += "</select></form></body></html>"
    </script>
    如果此时在</script>之前的任意时候我再调用此select1应该怎么调用。
      

  2.   

    there is no way to get thatbecause it was just part of the string, you did not even use document.write() to write it out yet, and the browser did not build it into its document object model yet
      

  3.   

    there is no way to get that
    没有办法得到它because it was just part of the string, you did not even use
    因为它仅仅是字符串的一部分,你甚至没有使用 document.write()
    document.write() to write it out yet, and the browser
    将它输出,因此浏览器还
     did not build it into its document object model yet
    没有把它建到文档对象模型里:),见笑