Which JavaScript expression would you use to retrieve the value of an input box named message where the user of the bouquetReqForm web form can type a brief note to include with a flower bouquet?
Which statement about how JavaScript compares with other com…
Which statement about how JavaScript compares with other common programming languages is true?
What belongs in the blank in the following JavaScript code i…
What belongs in the blank in the following JavaScript code if you want to create the document fragment Weekly Coupons? let boxTitle = document.createElement(“h1”); let boxTitleText = document.createTextNode(“Weekly Coupons”); boxTitle._____;
A web form includes a field with the id numberGuests into wh…
A web form includes a field with the id numberGuests into which the user is instructed to enter a number between 20 and 200. If the checkValidity() method returns false when called on this field, _____.
When writing JavaScript code to automatically move a user ba…
When writing JavaScript code to automatically move a user backward one page in their visited page history list for the current session, you can use either the window.history.back(); or the window.history.go(-1); command.
When the userName field of the login web form contains inval…
When the userName field of the login web form contains invalid data entered by the user, both of the following JavaScript commands will return false: Command 1: document.forms.login.elements.userName.checkValidity() Command 2: document.forms.login.checkValidity()
What does the following JavaScript code accomplish? let surv…
What does the following JavaScript code accomplish? let surveyForm = window.open(“”); let mainHeading = document.createElement(“h1”); mainHeading.textContent = “Your Experience”; surveyForm.document.body.appendChild(mainHeading);
What JavaScript statements should you place in the blank in…
What JavaScript statements should you place in the blank in order to retrieve the value of the user’s selection from the sauceFlavor drop-down menu in your web form and assign it to the sauceValue variable? let orderForm = document.forms.orderForm; let sauceFlavor = orderForm.elements.sauceFlavor;
What does the following JavaScript code do when the web page…
What does the following JavaScript code do when the web page loads? window.addEventListener(“load”, function() { let survey = document.forms.survey; let lastName = orderForm.elements.lastName; lastName.focus(); });
Imagine that you are working on a web form. After writing th…
Imagine that you are working on a web form. After writing the JavaScript statement let pinNo = document.getElementById(“pinNo”); what statement can you add to assign a Boolean value of true to isValid if the value in the pinNo field is matched by the regular expression /^\d{4}$/ or assign a value of false to isValid if it isn’t?