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:>
The .ready function is used to insert the attribute once the page has finished loading.
.ready
$(document).ready(function() { $("class name or id a.your class name").attr({"target" : "_blank"}) })