nerdexam
Microsoft

98-382 · Question #33

You are developing a web page that uses JavaScript. The script needs to display information to the user using a popup box. Match each function that displays a popup box with its appropriate scenario.

Match the following JavaScript functions to their scenarios: prompt: Display a dialog box that allows the user to enter a street address. alert: Display an error message using a function that does not return a value. confirm: Display a dialog box and return a value indicating…

Working with the Document Object Model (DOM)

Question

You are developing a web page that uses JavaScript. The script needs to display information to the user using a popup box. Match each function that displays a popup box with its appropriate scenario.

Explanation

Match the following JavaScript functions to their scenarios:

  • prompt: Display a dialog box that allows the user to enter a street address.
  • alert: Display an error message using a function that does not return a value.
  • confirm: Display a dialog box and return a value indicating which button the user clicked.

Topics

#alert#confirm#prompt#dialog boxes

Community Discussion

No community discussion yet for this question.

Full 98-382 Practice