Posted By

revierDsign on 12/03/09


Tagged

links


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jirimelcak


Add an icon for external links


 / Published in: jQuery
 

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

Report this snippet  

You need to login to post a comment.