关于B页面传递值到A页面文本框的问题。 本帖最后由 yacity 于 2011-05-09 10:31:25 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 处理B页面的js双击事件,indec.asp?pfullname="111111"的方式传值在A页面取值,并复制给chanpinname文本框 楼主你上面的方法可能在IE是可以的,你是不是在其他浏览器测试的parent.html<html><head><script type="text/javascript">function ft(){ window.open("child.html","_blank");}</script></head><body><form id="f1"><input type="button" value="打开子窗口" onclick="ft()"/><input type="text" value="" name="rv" id="rv"/></form></body></html>child.html<html><head><script type="text/javascript">function returnTest(){ window.opener.document.getElementById("rv").value = document.getElementById("rnow").value;}</script></head><body><input type="text" value="" id="rnow"/><input type="button" value="传回主窗口" onclick="returnTest()"/></body></html>说明:此方法只限于IE FireFox也行,就是360极速不行,也就是说谷歌浏览器也不行 恭喜,散分吧<p>'" js原型的问题,很奇怪 js 导出 EXCEL 如何能兼容FireFox ??? 可编辑div中通过某时间动态加入内容后,将光标跳到最后一行 这样的JS代码'和"怎么确定 (20分求)javascript 实现 动态表格内容(内容为HTML代码) 在线请教:JS实时更新时间 问题 请教一段正则表达式 JS创建的遮罩层高度怎么计算? 怎样用jscript实现a页面刷新b页面 web页读excel文件?!乱码!--sos求救 当textarea获得焦点后,如何让光标移到最后。 this的理解。
在A页面取值,并复制给chanpinname文本框
parent.html
<html>
<head>
<script type="text/javascript">
function ft()
{
window.open("child.html","_blank");
}
</script>
</head>
<body>
<form id="f1">
<input type="button" value="打开子窗口" onclick="ft()"/>
<input type="text" value="" name="rv" id="rv"/>
</form>
</body>
</html>child.html
<html>
<head>
<script type="text/javascript">
function returnTest()
{
window.opener.document.getElementById("rv").value = document.getElementById("rnow").value;
}
</script>
</head>
<body>
<input type="text" value="" id="rnow"/>
<input type="button" value="传回主窗口" onclick="returnTest()"/>
</body>
</html>
说明:此方法只限于IE
<p>
'
"