Looking at the JavaScript and HTML below, answer the questions in the quiz to the right. Through the magic of JavaScript, your quiz will be automatically scored as you take it.
<script type="text/javascript"> function validateIt() { fName = document.forms["myForm"].firstName; if (fName.value == "") { alert("Enter your name below."); } } </script> </head> <body> <form name="myForm" onsubmit="validateIt()"> <input type="text" name="firstName"> First Name<br> <input type="submit" value="Submit"> </form>
And now, back to our agenda!