J
Jeff
Let's say we have this:
<a href="" onclick="alert(this)">onclick</a>
"this" points to the "a" element
and then this:
<a href="javascript: alert(this)">link</a>
"this" points to the window and not the link, why is that?
Jeff
<a href="" onclick="alert(this)">onclick</a>
"this" points to the "a" element
and then this:
<a href="javascript: alert(this)">link</a>
"this" points to the window and not the link, why is that?
Jeff