<form name="frmtest">
<select name="selist">
...
</select>
</form>in javascript, you use document.frmtest.selist to reference the list
<select name="selist">
...
</select>
</form>in javascript, you use document.frmtest.selist to reference the list
<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应该怎么调用。
没有办法得到它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
没有把它建到文档对象模型里:),见笑