Use Documentforms 0 Return First Form Element Found Document Assign Element Returned Var N Q37105616

Use document.forms[0] to return the first form element found in the document. Assign the element returned to a var named fo

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.