I am using this bit of jQuery code to get href of the link:
var url = $(this).attr(\'href\');
-- and this bit of code to go to that href:>
Try using the following code.
$(document).ready(function(){ $("a[@href^='http']").attr('target','_blank'); });