开发者

How to close a pop up window and redirect the url to parent page?

I have created a django app. I have implemented a facebook login along with a django login for my app. On clicking the facebook login button, an outh login page pop ups and i able to login bu giving username and password there. But even after signing in, that pop up is not closing, and the new url to be showed after sign in is showed in that same pop up page. The same login page(parent page) for django app stays at the back during this time. Is there a way to close the pop up page once the user is logged in , and the corresponding url redirection to be made in the parent page.? Please help me to solve this , as i am quite new to programming. A开发者_Go百科lso please tell me what all codes i should post here to give you a better idea.


Call this JS in popup page:

window.opener.location.href = "http://some/new/location";
window.close();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜