Open A URL In A New Tab Using JavaScript

How can I open a URL in a new tab via Javascript, as opposed to a popup window.

  var win = window.open(url, '_blank');
  win.focus();
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments