Learn JavaScript
Advanced JavaScript
25.2
Lesson

prompt

prompt() displays a window with a message. It prompts the user for some input. If the user clicks OK, it returns the input value. If the user clicks Cancel or presses the Esc key, it returns null.