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.