Explain Messages and Conformations.
https://www.computersprofessor.com/2016/06/explain-messages-and-conformations.html?m=0
Java script provide three built in
window types that can be used from application code.
Prompt (“string”, “ “):-
This command display a simple
window that contains a prompt and text
field in which the user can enter data. This method has to parameters text
string to be used as the prompt and ‘string’ to use as the default value.
Conform (“string”):-
Show a
window containing a message and two buttons ‘ok’ and ‘cancel’. Selecting
‘cancel’ will abort any pending action, while ‘ok’ will let the action to
proceed.
Displays the text string and an ‘ok’ button. This may be used as a warning to provide a message as visitors leave your site.