Task: on page A, open a window in the browser with url B, execute code in window B and automatically close the window when the script is executed. If window B is closed automatically, run the script on page A. If window B was closed by the user before executing the script in window B, do nothing.

    1 answer 1

    // ... скрипт в окне B window.parent.MyFunction();