I have code <a href="javascript:someFunction(this);" tabindex="0">Some text</a>
Is it possible to pass element into someFunction(link) {...} and use it later.
In debug mode I see the object but all properties are undefined.
When I was using onClick attribute like <a onClick="javascript:someFunction(this); it worked fine.
I am aware that this is probably not the best solution and I have seen the other questions, but it is really not my issue right now. I just need to do it this way for many reasons.
Thanks a lot
onclickhas athisparameter because it triggers an event.hrefdoes not.