Window.open Features ~repack~

To prevent this, you should include noopener or noreferrer in your features string.

: Prevents the browser from sending the Referer HTTP request header to the destination server. It automatically triggers the behavior of noopener . Parsing Mechanics and Default Rules window.open features

You can detect whether the new window was blocked by a popup blocker. To prevent this, you should include noopener or

: A boolean-style feature. Setting popup=yes (or simply listing popup ) forces the browser to open a minimal, standalone popup window instead of a new tab. This overrides individual toolbar tokens. To prevent this

You can create a dependent window that will close when the parent window is closed.

: Toggles the visibility of the status bar at the bottom of the window.