I cant't get a simple button to work when it is inside a html form, while it works normally when not inside a html form.
This code doesn't work:
<head>
<script langauge="JavaScript">
function reset(){
alert('test')
}
</script>
</head>
<body>
<form name="nyform">
<input type="button" value="Reset" onClick="reset()">
</form>
</body>
While this one does:
<head>
<script langauge="JavaScript">
function reset(){
alert('test')
}
</script>
</head>
<body>
<input type="button" value="Reset" onClick="reset()">
</body>
What is the reason for this, and how can I correct it?
Thanks