The form above executes a JavaScript function whenever the submit event is fired. The function changes the background colour of this page. The form contains 4 buttons, each with a different type attribute value: type="submit", type="button", type="reset" and no type attribute. Click each button and notice which ones trigger the onsubmit event.