192
rated 0 times
[
194]
[
2]
/ answers: 1 / hits: 15648
/ 13 Years ago, sat, january 14, 2012, 12:00:00
Why doesn't this code work? I'am using FF.
<head>
<script type=text/javascript>
document.getElementById(someID).onclick = function(){
alert(Yahooo);
}
</script>
</head>
<body>
<a href=# id=someID>someID</a>
</body>
</html>
I'm getting javascript error getElementById equals to null.
More From » html