Return to Snippet

Revision: 20820
at November 26, 2009 00:28 by Mithun


Initial Code
$(document).ready(function() {
  $('#extlinks a').filter(function() {
 return this.hostname && this.hostname !== location.hostname;
  }).after(' <img src="/images/external.png" alt="external link"/>');
});

Initial URL
http://www.learningjquery.com/2008/08/quick-tip-dynamically-add-an-icon-for-external-links

Initial Description

                                

Initial Title
jQuery Dynamically add an icon for external links

Initial Tags
link, jquery

Initial Language
JavaScript