Scenarios where event handler is not called
Posted: Thu Oct 05, 2006 7:57 pm
Hello All,
Im looking for any reasons why this will not fire:
Of course my code has more detail than that, but the event handler is not firing and the alert() is not executing as well.
before anyone asks- I do have JavaScript enabled

Im looking for any reasons why this will not fire:
Code: Select all
....... html stuff....
<script type='text/javascript'>
function checkuser() {
alert("This is a test");
var user = document.getElementById("user").value;
}
</script>
........ more HTML .......
<input type='button' value='click me' name='hahaha' onclick='checkuser()' />before anyone asks- I do have JavaScript enabled