Popup boxes:
1.
Alert box: this box is used to display a message
to the user.
It ensures that the user reads the message
and click on “OK” button because it will not allow the user to perform any
operation without checking “OK” button.
Syntax: alert(“message”);
2.
Prompt box:
This box is used to provide information by
the user.
The prompt box contains two buttons (1) OK
(2) CANCEL
·
If the user click on “OK” button then it will
read the information typed by the user from the user box.
·
If the user clicks on “CANCEL” button then it
will read NULL value.
No comments:
Post a Comment