KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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.
Tags (comma-separated)
Save Edits
Cancel