Hello.
Faced with some kind of misunderstanding of how JavaScript works, the conclusion is as follows: the <A> link lacks the this context. I searched for information in a search engine, but it didn't work out.
<SPAN onclick="alert(this);">test</SPAN><BR/> <A onclick="alert(this);">test2</A> It's on jsfiddle .
How can I access this links?