How to Make All Links Open in a New Tab | Droidnur123

important so that readers still have access to the referral page where they find new links to click on directly. In expansion, for blog owners, this i
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

Welcome to Dn123 Blog Links on a blog are very important so that readers still have access to the referral page where they find new links to click on directly. In expansion, for blog owners, this is also beneficial because visitors do not immediately leave the blog page because of a new tab that must be opened.

How to Make All Links Open in a New Tab | Droidnur123


Here Droidnur123 will share 2 unique Ways to Make All Links Open in a New Tab.


(1) Method 

The first way is to need to add a script to the widget:

As We Know to Log in to Blogger > Layout > Create a new widget ( HTML Javascript > Copy and save the code below in it

<script>
//<![CDATA[
var arr=document.getElementsByTagName("a");arr[i].href.indexOf("https://droidnur123.blogspot.com/")<0&&arr[i].href.indexOf("javascript:")<0&&(arr[i].target="_blank");
//]]>
</script>

Replace the code "https://droidnur123.blogspot.com/" with your blog URL 

Don't Forget to Save widgets.

(2) Method 

The second way is to add the target blank command to the template markup code:

For That Open Template > Click Edit HTML next to customize > Copy and save the code below before the code </head> Tag

<base target='_blank' />

At last, Save the template and see the result on your blog.

That's all about How to Make All Links Open in a New Tab, Thanks for visiting! visit again.
Go to Link

About the Author

Droidnur is the Founder & CEO of droidnur.eu.org & Publisher with an Entrepreneur. He is Also a Collage Student & Full Time Passionate Blogger.

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.