Posted By

coryschadt on 12/15/09


Tagged

jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

fabianwizenfeld


Target _blank with jquery


 / Published in: jQuery
 

  1. //Open external links in a new window/tab
  2. $("a[href^='http://']").attr("target","_blank");

Report this snippet  

You need to login to post a comment.