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.
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.