HI All, It could be a silly question, but I cannot find a simple answer...
I need to trigger a link with href via an external function, i.e. <div onclick="linkClick()">Emulating click</div> <a id="test" href="flash/pdfs/test.html" >my link</a> function linkClick(){ $("#test").click(); } It does not work and returns nothing. I understanbd that it is because the a#test does not have the actual onclick event. So, how can I emulate click on a#test? Note, that I cannot modify the a link element or add onclick events.