'prompt()' Syntax, Parameters and Note : prompt « Javascript Methods « JavaScript Reference

'prompt()' Syntax, Parameters and Note

Note:

Opens a prompt window. 
Returns the string typed in by the user.
    
Syntax:
    
window.prompt(param1, param2)

Parameters:
    param1   Optional; the message to display in the prompt window.
    param2   Optional; a default value for the input field.

    

      
      








Related examples in the same category

1.'prompt()' Example
2.'prompt()' is applied to