Multiple choice

Which of the following type of box is used to get input from the user?

  1. inputbox

  2. alert

  3. confirm

  4. prompt

  5. dialog

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The prompt box is used to get input from the user. It has an inbuilt text box where the user can type a value. After typing the data, the user must click on either 'OK' or cancel to continue. The value entered by the user is stored in a variable and the further action can be taken.