Solved

Case-Based Critical Thinking Questions Case 11-5 Ashton Has Created a Website

Question 53

Multiple Choice

Case-Based Critical Thinking Questions Case 11-5 Ashton has created a website for his company using JavaScript. He wants to add dialog boxes to the website to display messages and allow the user to input text. Ashton wants to create a dialog box for his website that asks the user to select OK or Cancel when he or she decides to leave the website. Which of the following commands should Ashton use to do this?


A) alert(text)
B) prompt( text [, defaultInput ])
C) confirm(text)
D) print(text)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions