alert box
syntax
confirm box
syntax
What is the purpose of setting up an Alert?
What property can you used to restrict a user’s input?
- Correct, using the type property can restrict a user’s input, for example requiring a number value instead of text.
Both an alert and a prompt display a pop-up to the user. How do they differ?