您现在的位置是:首页 > 电脑技术查询 > web开发

关闭并刷新窗口的有关问题

编辑:chaxungu时间:2022-10-02 23:20:34分类:web开发

关闭并刷新窗口的问题
在窗口A中用showmodaldialog打开窗口B,在窗口B中也用showmodaldialog打开窗口C

我想要实现的功能是:关闭窗口C时,同时关闭B,而且还要刷新窗口A,javascript是如何实现这个功能的?急,在线等!
谢谢!

------解决方案--------------------
在C中写:
<script>
window.opener.close;
window.opener.opener.location.href= "A的网址 "
window.close;
</script>