window.opener is null after redirect

后端 未结 3 1810
日久生厌
日久生厌 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 20:50

    The issue with window.opener in IE is when you using localhost site and the internet site like paypal. Simply change location of your local host from Local Intranet to the Internet zone and the opener will not be null.

    0 讨论(0)
  • 2020-11-27 20:53

    First you can have a timer function in the parent windows to check whether the child window is opened or closed at particular time interval say 100ms or so. If it is closed then you can reload the parent window.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题