window.open 返回值问提! self.opener.frm_b.txt_name.value=frm_a.txt_name.value其中frm_b是先前的表单frm_a是当前表单 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 访问当前open出来的窗口的父窗口:window.opener <script language="javascript"><!--function openNew(){ var newWin = window.open('','newWin','width=600,height=400'); newWin.document.write('<select onchange="window.opener.test.value=this.options[this.selectedIndex].text"><option value="0" selected>a1</option><option value="1">a2</option></select>');}--></script><input type="text" value="" id="test" /><input type="button" value="OpenWin" onclick="openNew()" /> Demo <script type="text/javascript"> //<![CDATA[ var wnd = window.open('\ about:<select id="Sel">\ <option value="">select option</option>\ <option value="never-online">never-online</option>\ </select>\ ',"",""); var a = wnd.document.getElementById("Sel"); a.onchange = function() { document.getElementById("Ipt").value=a.options[a.selectedIndex].value; } //]]> </script><input id="Ipt"/> js文件怎么运行安装 panel中放置一个Ext.ProgressBar却不显示,这是为什么呢? 用javascript判断用户密码三次不对后,隐藏登陆按钮,给出提示 JavaScript实时验证表单 【高难度】连文本框中输入的文字,一起POST出去! 找个技术伙伴北京做网站创业 小规模做起 用威客做社区 为什么层没有移动 紧急求助:用vbscript写的ajax在载入数据时会卡住? 如何自动展开下拉框? 大神请教下,控制台中怎么用JS模拟点击按钮?【真心求教,解决必有红包】 不更新页面,如何更新一个页面上的变量 return false的问题
<!--
function openNew()
{
var newWin = window.open('','newWin','width=600,height=400');
newWin.document.write('<select onchange="window.opener.test.value=this.options[this.selectedIndex].text"><option value="0" selected>a1</option><option value="1">a2</option></select>');
}
-->
</script>
<input type="text" value="" id="test" />
<input type="button" value="OpenWin" onclick="openNew()" />
//<![CDATA[
var wnd = window.open('\
about:<select id="Sel">\
<option value="">select option</option>\
<option value="never-online">never-online</option>\
</select>\
',"","");
var a = wnd.document.getElementById("Sel");
a.onchange = function() {
document.getElementById("Ipt").value=a.options[a.selectedIndex].value;
}
//]]>
</script>
<input id="Ipt"/>