The blur event is triggered when the element loses focus. This event is commonly used with input elements, but can be used with other HTML elements . An element can lose focus when the mouse is clicked outside of the element or through keyboard commands, such as, tabbing out of an input element.
The submit event is one of the more popular form elements (right behind the change event). The method submit() attaches an event handler that executes a function when the submit event occurs or triggers the event. This event occurs whenever a form is submitted .