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:>
Use,
var url = $(this).attr('href'); window.open(url, '_blank');
Update:the href is better off being retrieved with prop since it will return the full url and it's slightly faster.
href
var url = $(this).prop('href');