Menu
can someone explaine to me why this doesnt work??? i’ve read through 3 books on javascript before ever even attempting it. however, i’m realizing that none of what i do really works. so i’m guessing there was a chapter i may have missed and someone can help me. this isnt a script that im using, but it is an example that i made up to show you guys quickly what i am talking about.
<html>
<head>
<script type=”text/javascript”>
var doSomething=document.getElementById(“do”);
doSomething.onclick=getinfo;
function getinfo() {
alert(“talk about me”);
}
</script>
</head>
<body>
<a href=”#” id=”do”>whateveer</a>
</body>
</html>