Javascript open new tab, and wait for it to close

后端 未结 3 1501
故里飘歌
故里飘歌 2021-02-19 19:02

I want to open a new tab for a bank payment on my website using javascript, and without the main window navigating away,

when the user is back from the bank payment to a

3条回答
  •  悲哀的现实
    2021-02-19 19:40

    Before closing the popup, try opener.someFunction() to call a function in the window that opened it. Note that this will fail if the user closed the first window, or if the user navigated it to another site, or if the two windows are on different domains for whatever reason.

提交回复
热议问题