The Submit Event (onsubmit)

The Submit event occurs only when the user submit a form. The event handler used for this event is onsubmit.

Example:


<form onsubmit = "window.alert('Thank you!');">
   <input type="text" id="FullName" />
   <input type="text" id="email" />
   <input type="submit" value="Submit Form" />
</form>

Leave a Reply