Within an iframe I have a user validate credit card payment information with a 3rd party website and upon validation the page will redirect to a predefined URL within our application. However, it POSTs to this URL within the iframe itself. Is there a clean way to redirect to the page I need? or do I have to use some intermediate page that would then do the redirect 'out' of the iframe?
在iframe中,我有一个用户验证信用卡支付信息与第三方网站,并在验证后页面将重定向到我们的应用程序中的预定义URL。但是,它会在iframe内发布到此URL。是否有一种干净的方式重定向到我需要的页面?或者我是否必须使用一些中间页面然后重定向iframe的'out'?
1 个解决方案
#1
3
Try putting the following javascript in your returned to page.
尝试将以下javascript放入您返回的页面中。
window.parent.location = url;
#1
3
Try putting the following javascript in your returned to page.
尝试将以下javascript放入您返回的页面中。
window.parent.location = url;