Processing Input
Using Prompts
Learn how to prompt users for input in JavaScript.
Window Prompt
We can get user input using the JavaScript prompt()
method. The prompt()
method displays a dialog box that prompts the user for input. The prompt()
method returns the input value if the user clicks "OK", otherwise it returns null.
Getting User Input Using Prompt
Edit on GitHub
Last updated on