试试
window.opener.getElementById
window.opener.getElementById
解决方案 »
- asp.net 如何通过CreateFile打印
- 关于图片上传并生成缩略图
- Access 数据库报错:标准表达式中数据类型不匹配。 ???
- 输入问题?
- 请帮忙看看如何处理
- asp.net环境配置问题
- 使用datatime(),取出当前日期,如何在这个日期上加上7天呢?
- 我做了个asp.net的网站,现在要改成繁体版的.怎么改呢?静止页面好改,就是调用数据库数据的时候就出错了,因为传递参数是繁体,而数据库里的
- 请问如何用按钮实现"F5"的刷新功能呢?
- 用C#能不能实现然让文本一个字一个字的弹出????
- 网站发布之前能运行,发布之后在iis中不能执行下面的方法,为什么呢?
- 急需解决“未将对象引用设置到对象的实例”问题~~~
window.opener.document.getElementById
取select的值
当前选中项 ["select"].value;
取所有项 ["select"].options[index].value; 循环 index, 0 开始在子窗体中取上级窗体的select
可试试:
var pSelect = window.parent.document.getElementById('如有ID');var pSelect = window.parent.document['form名']['select名'];循环for (index=0; index<pSelect.options.length; index++)
{
// 取各项值: pSelect.options[index].value;
}
alert(b)都是null来着而window.parent.frames("framesName").formName("selectName").type 是select-one
var a=window.opener.document.getElementById("formName") var b=window.opener.document.getElementById("selectName") alert(a)
alert(b)
不行~~~说window.opener.document不是对象