Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jQuery exclude exteranl link for images

$('a:not([href^="http://your-website.com"]):not([href^="#"]):not([href^="/"])').addClass('external');
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #jQuery #exclude #exteranl #link #images
ADD COMMENT
Topic
Name
7+6 =