Hello guys i'm wondering , i was write a good code JS and wondering how or why doesn't work. I will give you all code here:
<script type="text/javascript">
function submit() {
alert('Process have done!');
}
function reset() {
alert('Reset Done!');
}
</script>
<form action="JSEvents.html" method="POST" onsubmit="submit()" onreset="reset()">
<input type="text" ><br />
<input type="submit" value="Done" > -
<input type="reset" value="Reset" >
</form>
bodytag and not before yourHTMLand well in the document ready function.