<< Prev Question Next Question >>

Question 17/29

Consider the following code:

When an invalid e-mail address is entered, an alert is displayed to the user, but the form submission is not interrupted. What changes need to be made to the script in order to abort the submission if an invalid e- mail address is entered?

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (29q)
Question 1: Consider the following code: (Exhibit) Will this function ge...
Question 2: Consider the following message displayed in a pop-up window:...
Question 3: Consider the following code: (Exhibit) When a user clicks on...
Question 4: Which of the following is a reason why a developer would use...
Question 5: Suppose you define two variables as follows: var x = 5; var ...
Question 6: Consider the following code: (Exhibit) What is the output wh...
Question 7: Consider the following code: var myString= "Hello World"; al...
Question 8: Consider the following code: (Exhibit) What needs to be chan...
Question 9: Consider the following select list: (Exhibit) Which of the f...
Question 10: Consider the following code: (Exhibit) What is the expected ...
Question 11: What is the purpose of the prototype property in JavaScript?...
Question 12: Maria, a 22-year old student, is testing her JavaScript appl...
Question 13: How is the alert() method different from prompt() and confir...
Question 14: Which script block will display Hello World in the browser w...
Question 15: Consider the following code: (Exhibit) What is the appropria...
Question 16: Which of the following is a browser security issue that Java...
Question 17: Consider the following code: (Exhibit) When an invalid e-mai...
Question 18: Consider the following code: (Exhibit) What is the expected ...
Question 19: Which statement is true about the getElementByID() method?...
Question 20: Which of the following is a practice associated with the sec...
Question 21: Which of the following comparison statements will return tru...
Question 22: Consider the following code: (Exhibit) Which statement could...
Question 23: Which example correctly implements inline scripting with Jav...
Question 24: Which of the following will correctly modify the value of an...
Question 25: Which of the following will correctly declare the EmployeeID...
Question 26: Which choice best defines events and event handlers?...
Question 27: Which statement about the JavaScript form object is true?...
Question 28: Consider the following code: (Exhibit) What output will appe...
Question 29: Consider the following code: (Exhibit) What is the expected ...