到达特定页面后,弹出浏览器返回到父浏览器 [英] Popup browser back to parent browser after a certain page is reached

查看:101
本文介绍了到达特定页面后,弹出浏览器返回到父浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个弹出窗口(我在必要时使用),可以通过单击链接打开.我让用户浏览一系列页面选择属性,然后将其发送到购物车.

I have a popup (which I used by necessity) that is opened on a link click. I have the user going through a series of pages picking attributes to then be sent to a shopping cart.

我的问题:用户到达选择过程的结尾后,我想终止打开的弹出窗口,并将请求发送回原始浏览器(父级),以便用户可以结帐.

My problem: After the user reaches the end of the selection process i want to kill the open popup and send the request back to the original browser (parent) so the user can checkout.

知道我将如何做吗?

推荐答案

Javascript:在子(弹出)窗口中.

Javascript: in the child (popup) window.

window.opener.location = 'page.html";
window.close();

这是您要找的吗?

这篇关于到达特定页面后,弹出浏览器返回到父浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆