I know this question has been asked, but I can't for the life of me figure out what's going on. I have a very simple onsubmit function that should execute when I run in my html. I have no problem running oninput, but not onsubmit.
The extremely strange thing is, that the exact same html/javascript runs fine in jsfiddle. Any ideas?
<script type="text/javascript">
function CheckLogin()
{
alert('I should work');
return false;
}
</script>
<form name="login" id="login" method="POST" onsubmit="return CheckLogin();">
<input type="submit" value="Test" name="test" />
</form>