Is there a way to check if the current browser supports multiple tabs/windows. This is a common thing now because of in-app browsers.
Checking if new tab or window can be opened in javascript
1.3k views Asked by Behlül At
1
Is there a way to check if the current browser supports multiple tabs/windows. This is a common thing now because of in-app browsers.
According to mdn window.open docs, the
window.open()call should returnnullif the call was unsuccessful.As far as checking the ability to open a window without actually trying to open a window, there is no available API for that (as far as I know). You could open and close the window immediately again. Depending on the browser, the user may or may not see the brief flashing of a new window or tab.