var href = $(this).trigger('click', [event]).parents('a:first').attr('href'); if (href) { window.location.href = href; }