General Javascript/JQuery Question

General Javascript/JQuery Question

If I have an anchor element on a page is it possible to pass that anchor element as "this" as a parameter to a custom javascript function, so that I can get its attribute information out of it from within the function? I'm trying to come up with a way to code a simple generic function call, that will allow me to then access the element's attribute information from within the function, for further processing. I'm currently trying to code the call in the anchor like this:
 
<a href="javascript:findLinkPosn(this);" id="thisid">link text</a>
 
and the function code looks like this:
 
function findLinkPosn(elmnt)

     var id = elmnt.id;
 
}
 
but it doesn't work. I realize that "this" is a reserved word and that I may not be able to use it directly in a function call, but so far I'm stumped as to how to pass a good value referencing the specific anchor clicked, to the function. Thanks for the help.