Menu
I have this piece of code:
<a id=”idname” onclick=”getValue(this)”>link</a>
I have this javascript code:
function getValue(idval){
alert(getElementById(idval));
}
Obviously, this doesn’t work. If someone could tell me how to alert the ID value of the link that is clicked, that would be greatly appreciated.
Thanks,
Klanga