Auto Add Target=”_blank” Attribute For HTTPS Links – Target Blank Validate

Category: Javascript | April 21, 2023
Author:Maiquinho
Views Total:486 views
Official Page:Go to website
Last Update:April 21, 2023
License:MIT

Preview:

Auto Add Target=”_blank” Attribute For HTTPS Links – Target Blank Validate

Description:

The Target Blank Validate provides a simple JavaScript plugin to automatically add target="_blank" attribute https links found within your document.

This can ensure that all links with the https protocol open in a new tab or window, which allows users to navigate back to your site and continue browsing easily.

How to use it:

Just include the index.js and the function will scan the page for anchor tags with HTTPS links and add the target=”_blank” attribute accordingly.

<script src="index.js"></script>

You Might Be Interested In:


Leave a Reply