PrepAway - Latest Free Exam Questions & Answers

What is the appropriate parameter for the alert() method in line 5 to reference the text in the firstName text

Consider the following code:

What is the appropriate parameter for the alert() method in line 5 to reference the text in the
firstName text box?

PrepAway - Latest Free Exam Questions & Answers

A.
document.myForm.value(firstName)

B.
document.myForm.firstName.value

C.
window.myForm.firstName.value

D.
window.myForm.text(firstName)

Explanation:

PrepAway - Latest Free Exam Questions & Answers

Leave a Reply