Explain Messages and Conformations.



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.

prompt

 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.

conform
 
Alert (“string”):- 

Displays the text string and an ‘ok’ button. This may be used as a warning to provide a message as visitors leave your site.

alert

Related

Web Technology 7665160051305332134

Post a Comment

emo-but-icon

item