请教脚本语言中,父子窗口之间传递值 window.opener.document.form1.filenam.value = filename注意上面的代码,javascript,这里window.opener指向父窗口,研究一下如何用把 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.html=================<html><head><title>Example</title></head><script>function xx(){window.open("2.html","");}function inst(){document.form1.select1.options[0]=new Option('aaa','aaa',0,0)}</script><body><form name="form1"> <select name="select1"> </select><input type="button" onclick=xx() value="click"></form></body></html>============2.html====================<html><head><title>Example</title></head><body><script>window.opener.inst()window.opener.focus()self.close()</script></body></html> JQ,AJAX的问题,为什么ie和gg都可以,就FF不响应不行了? 用iframe 调用form 出错,不知道如何调用才能成功啊 怎么区分drag和click事件 如何让不同地区的用户打开网站后显示不出的页面呢? 怎么调用含变量i 的函数 画一个边框为红色的,透明的矩形框,急用 求一个正则 求写一个停止移动的函数,大神来求我啊...苦逼新手 js函数传递在a标签中添加onclick执行出问题 压缩JSON数据 我已经0分了,没办法给大家了,不过asp的问题还是要问的,这个问题怎样解决? 求助,关于window.open()的问题
=================
<html>
<head>
<title>Example</title>
</head>
<script>
function xx(){
window.open("2.html","");
}
function inst()
{
document.form1.select1.options[0]=new Option('aaa','aaa',0,0)
}
</script>
<body>
<form name="form1">
<select name="select1">
</select>
<input type="button" onclick=xx() value="click">
</form>
</body>
</html>============
2.html
====================
<html>
<head>
<title>Example</title>
</head>
<body>
<script>
window.opener.inst()
window.opener.focus()
self.close()
</script>
</body>
</html>