js子窗口传送数据到父窗口,小弟JS不熟,望高手指点。谢谢! http://topic.csdn.net/u/20080521/16/f1ea3d9b-502e-4cde-9d0a-afce32615a1a.html看下我4楼回复 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 test.htm<input type="text" id="txt1" onclick="window.open('child.htm')"/> child.htm<input type="text" id="txt1"/> <input type="button" onclick="SetV()" value="确定"/><script>function SetV(){ opener.document.getElementById("txt1").value=document.getElementById("txt1").value;self.close()}</script> 用Window.ShowModalDialog打开一个窗口,然后可以通过window.returnValue向打开对话框的窗口返回信息 救大侠们帮助!! 在jsp页面里,怎么去除text字段的前面,中间,后面的空格问题! ajax调用页面返回的innerHTML中如何执行javascript 在Dtree中添加了判断为什么就一直循环了? javascript 锁屏问题 请问关于js的问题,马上揭贴 如何静音问题 javascript中怎么控制浮点数精度? 哪位大侠帮我看一看,为什么点击按钮后alert出来的总是24,并且滚层的高度不理想 还是传递问题 javascript如何在本页面传值 为什么我的函数参数只能用数字
<input type="button" onclick="SetV()" value="确定"/>
<script>
function SetV()
{
opener.document.getElementById("txt1").value=document.getElementById("txt1").value;
self.close()
}
</script>