/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('a[href^="http://"]').attr({ target: "_blank" }).addClass("external-link");