试一下这样呢
window.dialogArguments.getElementById("test").length=window.dialogArguments.getElementById("test").length+1;
window.dialogArguments.getElementById("test").options[window.dialogArguments.getElementById("test").length-1].value="";
window.dialogArguments.getElementById("test").options[window.dialogArguments.getElementById("test").length-1].text="";
window.dialogArguments.getElementById("test").length=window.dialogArguments.getElementById("test").length+1;
window.dialogArguments.getElementById("test").options[window.dialogArguments.getElementById("test").length-1].value="";
window.dialogArguments.getElementById("test").options[window.dialogArguments.getElementById("test").length-1].text="";
解决方案 »
- 3个外链js,有什么方法使得第一个执行完,再执行其他js
- onbeforeunload事件使用后,怎样阻止页面刷新!
- 这样定义个什么对象?
- 这个js怎么写啊,要判断xm为空就弹出窗口而且不往下执行了,谢谢
- 求助!!在按钮图片上使用onmouseover和onmouseout事件,鼠标一移上的时候,为什么图片就直闪
- 高分只送高人:关于浏览器窗口的苦干问题(在线等)
- 请教正则切分问题[match]
- 该死的3721,是利用什么漏洞做的,每次都能趁我不知道的时候自动装上。
- 急需javascript函数,输入参数为string,校验是否为YYYY.MM.DD日期格式?
- 如何查这种js代码 100分!
- 求救,急!!!请各位指教!
- 简单问题:调用IE的“另存”功能是document.execCommand('SaveAs'),那么“发送”中的“电子邮件页面”和"电子邮件连接"应该怎么写呢?
window.dialogArguments.document.all.getElementById("test").options.add(new Option("c","c"));
都报错,"对象不存在或者为空""错误的对象属性或方法"...
<INPUT TYPE="button" value="test" onclick="javscript:okok();">
<script language="JavaScript">
function okok(){
document.all.test.options.add(new Option("c","c"));
}
</script>可以增加成功
<INPUT TYPE="button" id="addtoparent" value="Add selecting item" onclick='window.dialogArguments.addtoparent()'>
dialogArguments.getElementById("test").options.add(new dialogArguments.Option("c","c"));
}