Advertisement
siristru

jQuery add atribute title to _blank

May 8th, 2023
2,414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.16 KB | None | 0 0
  1. $(function () {
  2.     //Add attribute title="Link opens in a new tab" to links with target="_blank"
  3.     $("a[target='_blank']").attr({title:"Link opens in a new tab"});
  4. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement