please include comments
Use document.forms[0] to return the first ‘form’ element found in the document. Assign the element returned to a var named form. Use the property onsubmit to add a submit event handler to the form element. . Have the onsubmit event call a function named checkForm. . Create a function checkForm that is passed the parameter e . Inside the body of the function use form.username to get the ‘username’ text element and
OR
OR