I need some help to create jquery script :) I have some of link like this on my HTML.
Google
This is such a brilliant site I learned so much from it :
If you do it this way you do not need to worry about http or https (handy while developing)
$('a[href^="http"]') .not('a[href*='+ location.hostname +']') .attr('target','_blank');