In this example the submit() method triggers the submit event, or attaches a function to run when a submit event occurs.
submit()