for (i=0;i<=document.form1.Client_Agent.length;++i)
==>
for (i=0;i<document.form1.Client_Agent.options.length; i++)1. document.form1.Client_Agent只是下拉框 options 才有length属性
2. i<=document.form1.Client_Agent.length 当i=length的时候当然出错, 数组的 index 是从0开始的, 最后一项的index是length-1
3. 你用 ++i 干什么??
==>
for (i=0;i<document.form1.Client_Agent.options.length; i++)1. document.form1.Client_Agent只是下拉框 options 才有length属性
2. i<=document.form1.Client_Agent.length 当i=length的时候当然出错, 数组的 index 是从0开始的, 最后一项的index是length-1
3. 你用 ++i 干什么??
<!--
function ShowList_Text()
{
a=new Array()
document.all.Layer1.style.visibility="visible";for (i=0;i<=document.form1.Client_Agent.length;i++)
{
a[i]=document.form1.Client_Agent.options[i].value;
}
}//-->
</SCRIPT>