Javascript – re-focus on parent window after closing child

Great for CP simulations. As easy as below (run from the js-opened child window/simulation)

window.opener.focus(); window.close();
Tech Reference: ,

Leave a Reply

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑