onSubmit/onReset
onSubmit
Unfortunately, the only way I have been able to use the onSubmit event handler, is to use a function. To use the onSubmit, put onSubmit="javascript statements"inside the form tag.
onReset
As with the onSubmit, you put the onReset inside the form tag. You can put an alert saying "Values reset!" To do this, add onReset="alert('Values reset!')" inside the form tag. Here is what we just created.
That is all of the event handlers on this page. However, there are other sections.
Back Homepage Event Handlers