在A页面,点击连接,打开弹出窗口B,在弹出窗口B执行相应的操作后,点击保存,弹出窗口B自动关闭,要求此时刷新A页面.请问大家怎么做. 这个问题我过去问过,看看这个:http://community.csdn.net/Expert/topic/3170/3170466.xml?temp=.6132929。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 窗口B:parent.location.reload();window.close(); function closewin() {window.close();window.parent.location.reload();}-->不行,还是不刷新啊, 大家帮帮忙啊 <script language="javascript"> function closeWindow() { window.opener.location.reload(); window.close(); }</script>可以的呀 <script language="javascript">function closeme(){ window.opener.location.reload(); window.close();}</script><input type="sumbit" onclick="closeme()"> window.close();window.parent.location.reload();你写反了自然不刷新 function openwin(Emp_id,Emp_name,type) { window.open ("addTeamUser.jsp?Emp_id="+Emp_id+"&Emp_name="+Emp_name+"&type="+type+"", "newwindow", "height=400, width=400,toolbar=no,menubar=no") } //A页面function closewin(){ window.close(); window.opener.location.reload();}//弹出窗口,还是不能自动刷新<input type="submit" name="submit" value="保存" onclick="closewin();">是不是还有什么参数没有写对的阿,大家看看 xx_ch(好客小虫)都说了你写反啦!应该是window.opener.location.reload();window.close(); JSP+MySQL主键生成策略用什么? Hibernate如何实现多条件查询 JSF怎么分页 着急!10分! 有一个简单的问题,高手请进,在线等待! 那位大哥能帮我完整的翻译一下这段代码~小弟不胜感激~谢谢~ 求助:jsp中一個比較基本的問題 jsp初学者(关于虚拟目录) String 类型数据问题 绝对新手,问题有二 Web.xml下加入监听器TomCat无法启动 使用Calendar获得日期的问题? 使用jfreechart绘图存储图片的问题
parent.location.reload();
window.close();
window.close();
window.parent.location.reload();
}
-->不行,还是不刷新啊, 大家帮帮忙啊
function closeWindow()
{
window.opener.location.reload();
window.close();
}
</script>
可以的呀
function closeme(){
window.opener.location.reload();
window.close();
}
</script>
<input type="sumbit" onclick="closeme()">
window.parent.location.reload();你写反了自然不刷新
window.open ("addTeamUser.jsp?Emp_id="+Emp_id+"&Emp_name="+Emp_name+"&type="+type+"", "newwindow", "height=400, width=400,toolbar=no,menubar=no")
} //A页面function closewin(){
window.close();
window.opener.location.reload();
}//弹出窗口,还是不能自动刷新
<input type="submit" name="submit" value="保存" onclick="closewin();">是不是还有什么参数没有写对的阿,大家看看
应该是
window.opener.location.reload();
window.close();