This reminds me of the now infamous and probably mostly forgotten quote:
"That depends upon what the meaning of 'is' is."
Anyways, no. In a free standing function like that, this refers to the window.
You could:
Code:
function hideMe(el) {
el.style.display="none";
}
and:
HTML Code:
<a href="javascript:void(0);" onclick="hideMe(this);return false;">
Some text.
</a>
There are other ways to assign functions as events to elements and, depending upon the browser and the method used, your original syntax would actually work.
Bookmarks