H
Hans
If I for example have two anchor tags
<a id="anchor1" onclick=".....">Link1</a>
<a id="anchor2" onclick=".....">Link2</a>
In a javascript function I get the id of an anchor tag and I want to execute
the onclick event (or some other event on this element). Is it possible?
I would like something like this
document.getElementById("anchor1").onclick
Regards
/Hans
<a id="anchor1" onclick=".....">Link1</a>
<a id="anchor2" onclick=".....">Link2</a>
In a javascript function I get the id of an anchor tag and I want to execute
the onclick event (or some other event on this element). Is it possible?
I would like something like this
document.getElementById("anchor1").onclick
Regards
/Hans