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

Your email address will not be published. Required fields are marked *

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

Up ↑