How to Open URL in New Tab using JavaScript

How to Open URL in New Tab using JavaScript

Today, We want to share with you How to Open URL in New Tab using JavaScript.
In this post we will show you javascript open in new window, hear for Open a Link in a New Tab using JavaScript we will give you demo and example for implement.
In this post, we will learn about How to Open a Link in a New Window Using JavaScript with an example.

HTML Simple ancher target main attribute supported Good way and An Easy to open the your website linked URL Like as a http://www.pakainfo.com in the new browser window or tab. But here problems sometimes it requires our website croul opening a website URL with pure JavaScript. The JavaScript simple Based window.open() method opens directly a new browser window.

How to open a page in new tab in javascript or jquery?

Use _blank in the second parameter of window.open() Simple method to open a URL in a new tab using JavaScript. The following JavaScript code will open http://www.pakainfo.com in a new browser tab or window.

window.open('http://www.pakainfo.com', '_blank');

 Information blog 

Open a URL in a new tab using JavaScript

Open a URL in a new tab (and not a new window) using JavaScript below snippet will do the trick

function OpenInNewTabWinBrowser(url) {
  var mywin = window.open(url, '_blank');
  mywin.focus();
}

Note: JavaScript Simple, abbreviated as pure JS, is a one type of the high-level, Best interpreted programming language.JavaScript based for development of browser or client side all the behavior.

We hope you get an idea about How to open a page in new tab in javascript or jquery?
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

We hope This Post can help you…….Good Luck!.

Leave a Comment