The window.prompt() DOM method creates a simple modal pop-up for user input. The first parameter you pass to it is the text displayed in the prompt, the second allows you to pre-fill a value for the user.
↧
The window.prompt() DOM method creates a simple modal pop-up for user input. The first parameter you pass to it is the text displayed in the prompt, the second allows you to pre-fill a value for the user.