关于select新增option的问题 var obj=opener.document.all.selectID;obj.options.add(new Option(tx,vl,true,true)); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ===========><select id="selectID"> 把原来的值保存在一个数组里,先清空select里面的值,然后再赋值window.opener.document.all.selectID.options.lenth = 0;for (i=0;i<Array.lenth;i++){obj.options.add(i,Array[i]);} 可以在父窗口中定义一个增加option的函数,然后在子窗口中调用这个函数. var len=window.opener.document.all.selectID.options.length;window.opener.document.all.selectID.options[len]=new Option(tx,vl); var len=window.opener.document.all.selectID.options.lenth;//lenth改为length var oOption = document.createElement("OPTION");oOption.text=onode.selectSingleNode("UserName").text; oOption.value=onode.selectSingleNode("UserID").text;document.Form1.UserList.add(oOption); 百度js弹出登录窗口怎么实现的 模式窗口刷新问题 很急 dialogArguments传递到option的问题 寻找:js图片编辑器 问个超级简单的问题!!!!! 简单问一个问题,IE代码转换为firefox中兼容代码。解决立马给分。 复选框实现单选的问题 帮看一下一个简单问题 JScript 中,我用FSO 是否可以操作别人的机器上的硬盘文件??? 鼠标如何定位到文本框???? 求抽奖程序,请各位大侠拔刀相助!!!感激不尽!!(100分倾囊相赠) 如何得到文本框的ID名
<select id="selectID">
window.opener.document.all.selectID.options.lenth = 0;
for (i=0;i<Array.lenth;i++)
{
obj.options.add(i,Array[i]);
}
window.opener.document.all.selectID.options[len]=new Option(tx,vl);
oOption.text=onode.selectSingleNode("UserName").text;
oOption.value=onode.selectSingleNode("UserID").text;
document.Form1.UserList.add(oOption);