关闭子窗口,重定向父窗口 [英] Close child window, redirect parent window
本文介绍了关闭子窗口,重定向父窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个从父母打开子窗口的页面。
I've got a page which opens a child window, from a parent.
用户在子窗口中完成某些操作后,我需要子窗口单击子窗口中的按钮,将其父窗口重定向到页面。
After the user has done something in the child window, I need the child window to close, and its parent window to be redirected to a page, on the click of a button in the child window.
任何想法?
推荐答案
:
opener.location.href = '/redirect';
close();
这篇关于关闭子窗口,重定向父窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文