从iframe中打开一个新窗口,然后从新窗口中向原iframe中传值得问题,在线等待..... 在新window中使用opener可以访问你的iframe,以后怎么做的就不用我说了吧:) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你可以在iframe页面中设置某个变量如var theParam;然后在new window 中,使用opener.theParam=你的选择值或者直接将返回值捆绑到ifram的document.body中,opener.document.body.theParam=returnValue;这样你就可以取得USER 选择,在相应处理了:) 如果浏览器只考虑ie4以上,可以使用window.showModalDialog 方法 假如在IFRAME中有一个TEXT,他的ID为Q你可以window.opener.document.all('q').value = "text"; 老兄,能不能说明白点我这里有个,怎么就用不了那<script language="javascript">function SelectData(){ gourl="win.htm" window.open(gourl,"calendar","width=200 height=200 resize=no scrollbars=no");}</script><body><form method="POST" name="TestForm" action=""> <input type="text" name="Edit1" size="20"><input type="button" value="按钮" name="B1" onclick="SelectData()"><input type="reset" value="全部重写" name="B2"></p></form><script language="javascript">function SelectOver(){window.opener.document.TestForm.Edit1.value= "mama"; close();}</script><form method="POST" action="--WEBBOT-SELF--">input type="button" value="按钮" name="B1" onclick="SelectOver()"></form> WebGIS开发(使用开源软件) 去哪儿网的一道面试题 如何上父级DIV的父级DIV改变CLASS 求一个JavaScript的Cookies和Session的例子 每到周6周日 论坛就好象死了一样 看不到一点积极向上的氛围 痛苦~ 想实现一个类似于CSDN -> FAQ列表页的渐变效果 toString与Object是什么关系 100分求正则表达式 为什么一定要"return true"? 如何实现以下代码重复点击操作,小白才入门。感谢各位大佬 Fason 进来令分! 求助!在线等待!
然后在new window 中,使用opener.theParam=你的选择值
或者直接将返回值捆绑到ifram的document.body中,opener.document.body.theParam=returnValue;这样你就可以取得USER 选择,在相应处理了:)
我这里有个,怎么就用不了那
<script language="javascript">
function SelectData()
{
gourl="win.htm"
window.open(gourl,"calendar","width=200 height=200 resize=no scrollbars=no");}
</script>
<body><form method="POST" name="TestForm" action="">
<input type="text" name="Edit1" size="20"><input type="button" value="按钮" name="B1" onclick="SelectData()"><input type="reset" value="全部重写" name="B2"></p>
</form><script language="javascript">
function SelectOver()
{
window.opener.document.TestForm.Edit1.value= "mama";
close();
}
</script>
<form method="POST" action="--WEBBOT-SELF--">input type="button" value="按钮" name="B1" onclick="SelectOver()">
</form>