I want to simulate a click on any link on a page using JavaScript. If that link has some function binded to its \'onclick\' event (by any other JS I don\'t have any control
Easy! Just use jQuery's click function:
$("#theElement").click();