-->
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 pageload or How to open links in a new tab on click. Some of them also want to open their own site on a page.

There are scripts that you can use on your site or on any single page to open a link on page-load.

  • Open a link in the same tab on Page-Load
<body onload="window.open('https://www.liteup9ja.com.ng/');">
  • Open a link in New Tab on page-load
<BODY ONLOAD="WINDOW.OPEN('HTTPS://WWW.LITEUP9JA.COM.ng/', '_BLANK');">
  • Open or auto-refresh different URLs in New Tab By using the meta tag.
<meta http-equiv="refresh" content="5;URL=javascript:window.open('https://www.liteup9ja.com.ng/', '_blank');" />

There are scripts that you can use on your site or on any single page to open the link when the user clicks anywhere.

  • Add a single link to open when only clicking on the link
<A ID="LINK" HREF="HTTPS://WWW.LITEUP9JA.COM.NG/" TARGET="_BLANK">ISEKHUA STEPHEN</A>
  • Open the URL on click anywhere in the new tab
<BODY ONCLICK="WINDOW.OPEN('HTTPS://WWW.LITEUP9JA.COM/NG/', '_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.liteup9ja.com.ng'" />

0 Response to "How to Open specific link in new Tab on Pageload"

Post a Comment

Iklan Atas Artikel


Are you an Artiste? Do you want your music to go viral and reach a large number of Audience? Promote your music on LITEUP9JA by clicking HERE. You can also advertise your product or brand by clicking HERE.

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel