I have an anchor somewhere and need to call it's onclick
event programmatically from JavaScript. The site does not have jQuery.
The solution needs to be "cross-browser"
I tried:
document.getElementById('anchorID').onclick();
or
document.getElementById('anchorID').click();
but nothing gets fired.