Posted By

nonsalant on 11/02/10


Tagged

jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


External links open in new window


 / Published in: JavaScript
 

This jQuery code should make all external links from the #content div open in a new window.

  1. $("#content a[href^='http://']").attr('target','_blank');

Report this snippet  

You need to login to post a comment.