If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

JS Animated. How to assign target=”_blank” for links

This tutorial shows how to assign target =”_blank” for links in JS Animated templates.

JS Animated. How to assign target=”_blank” for links

In order to assign target =”_blank” to any word, you have to open a proper html page and find a needed word.

  1. First of all, open your cpanel file manager section and look for needed html file in the root of your public_html folder:

    HTML_._How_to_assign_target_blank-1

  2. Open the corresponding html file for editing and locate the needed word.

  3. This code has to be added to the needed place:

    <a class="links" onclick="javascript:window.open('link url here', '_blank')">CLICK HERE</a>
    	

    HTML_._How_to_assign_target_blank-2

  4. Instead of ‘link url here’ you can set any link, for example we will link to ‘ https://twitter.com/ ‘, and instead of CLICK HERE you should write a proper word, so our code will look like the following one:

    <a class="links" onclick="javascript:window.open('https://twitter.com/', '_blank')">News</a>
  5. Then click on Save Changes button.

  6. In order to see cursor pointer when you hover on needed text link, you have to add this css code in style.css file:

    .links {
    cursor: pointer;
    }
    

    HTML_._How_to_assign_target_blank-3

Feel free to check the detailed video tutorial below:

JS Animated. How to assign target=”_blank” for links