How to open specific link in new tab on pageload

Many people on the web, search for How to open a specific link in a new tab on page load or How to open links in a new tab on click. Some of them also want to open their own site on a page. So we are sharing the most used scripts for open a link in the new tab.
How to open specific link in new tab on pageload

How to open a specific link in a new tab on page load

There are the scripts that you can use on your site or on any single page to open a link in a new tab on page load.
  • Open a link in the same tab on Page-Load
<body onload="window.open('https://www.abhishekindora.com/');">
  • Open a link in New Tab on page-load
<body onload="window.open('https://www.abhishekindora.com/', '_blank');">
  • Open or auto-refresh different URL in New Tab By using the meta tag.
<meta http-equiv="refresh" content="5;URL=javascript:window.open('https://www.abhishekindora.com/', '_blank');" />

How to open links in a new tab on click

There are the scripts that you can use on your site or on any single page to open the link when user click anywhere.
  • Add a single link to open when only click on link
<a id="link" href="https://www.abhishekindora.com/" target="_blank">Abhishek Indora</a>
  • Open URL on click anywhere in new tab
<body onclick="window.open('https://www.abhishekindora.com/', '_blank');">

How To Auto-Refresh The URL By Meta tag

You can use these scripts if you want to automatically refresh the URL.
  • Refresh the same URL by using the meta tag.
<meta http-equiv="refresh" content="5" />
  • Refresh a different URL after 10 seconds
<meta http-equiv="refresh" content="10;URL='https://www.abhishekindora.com/'" />
Name

ADSENSE,8,Blogging,27,General Tech,15,Make Money,5,Marketing,8,PC,3,SEO,7,Social Media,4,
ltr
item
Abhishek Indora: How to open specific link in new tab on pageload
How to open specific link in new tab on pageload
Many people on the web, search for How to open a specific link in a new tab on page load or How to open links in a new tab on click. Some of them also want to open their own site on a page. So we are sharing the most used scripts for open a link in the new tab.
https://1.bp.blogspot.com/-3vak9xt3ZCo/Xptmj8hUzEI/AAAAAAAAC4k/k9gumFj1ecQp4cPXbpVwB0ALAo2xoUM7QCLcBGAsYHQ/s1600/How%2Bto%2Bopen%2Bspecific%2Blink%2Bin%2Bnew%2Btab%2Bon%2Bpageload.jpg
https://1.bp.blogspot.com/-3vak9xt3ZCo/Xptmj8hUzEI/AAAAAAAAC4k/k9gumFj1ecQp4cPXbpVwB0ALAo2xoUM7QCLcBGAsYHQ/s72-c/How%2Bto%2Bopen%2Bspecific%2Blink%2Bin%2Bnew%2Btab%2Bon%2Bpageload.jpg
Abhishek Indora
https://www.abhishekindora.com/2020/04/how-to-open-specific-link-in-new-tab-on-pageload.html
https://www.abhishekindora.com/
https://www.abhishekindora.com/
https://www.abhishekindora.com/2020/04/how-to-open-specific-link-in-new-tab-on-pageload.html
true
7880739494318546033
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network where you shared this Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content