can someone please tell me why everytime i try and pass this to a js
function i can't seem to use it for anything:
<html>
<head>
<script language="javas cript">
function a(fromlink) {
alert(fromlink. nodeName); // outputs undefined
alert(fromlink. nodeType); // outputs undefined
alert(fromlink. parentNode); // outputs undefined
// i might as well be writing:
alert(fromlink. blahblah_not_a_ member);
}
</script>
</head>
<body>
Some body text<br />
<a href="javascrip t:a(this)">This is a link</a>
</body>
</html>
what am i doing wrong? this is driving me mad