提交参数到父页面并更新 现在有以下几个窗口的一次展现过程A->B->C->B->AB->C->B这个过程中,B到达C,然后C操作后,提交参数到B页面,这个时候我碰到的问题是,如何不打开新的B而是回到B->C这个之前的B页面,并且B中页面更新,获取到新参数,而不是新打开C->B这里的B页面,因为这样的话就无法实现关闭B的时候,reload页面A谢谢大家帮忙了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 A.html<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><body> <form id="form1" runat="server"><input id="cs" name="1" type="text" /><input name="b" onclick="window.open('B.aspx','','')" type="button" value="open" /> <label id="lb" ></label> </form></body></html>B.html<html> <head> <script language = "javascript"> function fn() { window.opener.document.getElementById('cs').value = window.document.getElementById('username').value; window.opener.document.getElementById('lb').innerHTML = window.document.getElementById('username').value; window.close() } </script> </head> <body> <input type="text" name="username" id="username"><input name="but" type="button" onclick="fn()" value="close" /> </body><html>楼主结贴 C中操作数据后,reload下B就可以了 window.parent.reload();不知道你是不是这个意思 我在C中action="B.jsp" 提交参数到B页面后reload原来的B页面,可是不会把提交的参数reload过来,因为这个reload的动作总是在提交之前动作,相当于没有reload。现在就是有没有可以提交的时候直接action到父级页面 而不是重新开一个B页面呢 不好意思 我是引用你的 引错了 我的意思是我在C中action="B.jsp" 提交参数到B页面后reload原来的B页面,可是不会把提交的参数reload过来,因为这个reload的动作总是在提交之前动作,相当于没有reload。现在就是有没有可以提交的时候直接action到父级页面 而不是重新开一个B页面呢 js getElementById问题 高手来帮助~~~~~~~~~ jquery自定义动画 有关xpath谓语的问题 如何使不同链接,在同一页显示不同的内容?急!!! 文件夹名称的正则问题 用什么工具可以把整个网站下载下来? 可是clearInterval(oTime);总是不起作用55555555555555555555 我用vbs可以,为什么用javascript有问题? js导出Excel 内容不对 并且乱码 合成优化一下代码 3q 怎麼在函數裡面修改外部變量?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<form id="form1" runat="server">
<input id="cs" name="1" type="text" /><input name="b" onclick="window.open('B.aspx','','')" type="button" value="open" />
<label id="lb" ></label>
</form>
</body>
</html>B.html
<html>
<head>
<script language = "javascript">
function fn() {
window.opener.document.getElementById('cs').value = window.document.getElementById('username').value;
window.opener.document.getElementById('lb').innerHTML = window.document.getElementById('username').value;
window.close()
}
</script>
</head>
<body>
<input type="text" name="username" id="username">
<input name="but" type="button" onclick="fn()" value="close" />
</body>
<html>
楼主结贴
不知道你是不是这个意思
我在C中action="B.jsp" 提交参数到B页面后reload原来的B页面,可是不会把提交的参数reload过来,因为这个reload的动作总是在提交之前动作,相当于没有reload。现在就是有没有可以提交的时候直接action到父级页面 而不是重新开一个B页面呢
不好意思 我是引用你的 引错了
我的意思是
我在C中action="B.jsp" 提交参数到B页面后reload原来的B页面,可是不会把提交的参数reload过来,因为这个reload的动作总是在提交之前动作,相当于没有reload。现在就是有没有可以提交的时候直接action到父级页面 而不是重新开一个B页面呢