An alert is a type of dialog box supported in javascript and is mostly used to give a warning message to the users.
For example:
If one input field requires to enter some text but the user does not provide any input, then as a part of validation, you can use an alert box to give a warning message.
2.If your form get submitted successfully,then also you can use alert dialog box with some message
like form submitted successfully.
Similarly there many other examples where you can use alert diaog box.
Have a look on this simple example to understand the concept of alert dialog box:
0 Comment(s)