0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Open a URL in a new tab

Last updated at Posted at 2020-01-05

I'm trying to open a URL in a new tab, as opposed to a popup window.

I've seen related questions where the responses would look something like:


window.open(url,'_blank');
window.open(url);

Nothing an author can do can choose to open in a new tab instead of a new window; it is a user preference.

CSS3 proposed target-new, but the specification was abandoned.

The reverse is not true; by specifying dimensions for the window in the third argument of window.open(), you can trigger a new window when the preference is for tabs.

Ref:https://www.coder.work/article/4624

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?