carlosalvidrez
Programmer
Hello,
Is it possible to trigger the event of an object through it's id?
I would like to call the "onClick" event of an object (button, radio, whatever) through getElementByID.
I have tried:
1. document.getElementById( "theIdOfMyObject" ).onClick;
2. document.getElementById( "theIdOfMyObject" ).onClick();
Thanks in advance.
Is it possible to trigger the event of an object through it's id?
I would like to call the "onClick" event of an object (button, radio, whatever) through getElementByID.
I have tried:
1. document.getElementById( "theIdOfMyObject" ).onClick;
2. document.getElementById( "theIdOfMyObject" ).onClick();
Thanks in advance.