CSS, Javascript, jQuery, Tutorials

Opening a link in a new tab using JQuery

15 April 2019

Using jQuery to Open External Links in New Windows. By using a jQuery script that runs after the page has loaded.

The target-new property specifies whether new destination links should open in a new window or in a new tab of an existing window.

Form Example

<script type="text/javascript">
    jQuery('.sc_testimonial_author a').attr('target', '_blank');

Leave a Comments