« Return to the main article
If you want to reuse a window and make sure it is not in the background after changing the content, just call .focus() on it.
Example: popup = window.open("someURL.html", "myPopup"); popup.focus();
If you want to reuse a window and make sure it is not in the background after changing the content, just call .focus() on it.
Example: popup = window.open("someURL.html", "myPopup"); popup.focus();