I\'m trying to override window.open()
, so I\'m trying to find a way to open link in new window without window.open()
.
In detail, I\'m in su
From javascript alone you can't open a new window without using window.open()
. Also you have no influence on how the window is opened in new browsers. It depends on the browser-settings whether this opens a new tab or a new window.
You can declare that you want a new window by defining <a
target="_blank"href="..."></a>
on a a
-element, but then the user has to click it. Otherwise if you trigger a click with javascript you will run into the popup blockers of the browsers.