window.opener is null after redirect

后端 未结 3 1908
日久生厌
日久生厌 2020-11-27 20:30

I am opening a paypal window from the parent with window.open(). After payment and redirecting back to my page (in the popup window), I would like to close the

3条回答
  •  情深已故
    2020-11-27 21:00

    window.opener is removed whenever you navigate to a different host (for security reasons), there is no way around it. The only option should be doing the payment in a frame if it is possible. The top document needs to stay on the same host.

提交回复
热议问题