click a link using jquery

JavaScript
$("a").trigger("click");
Source

Also in JavaScript: