The prompt() method displays a dialog box that prompts the visitor for input.
A prompt box is often used if you want the user to input a value before entering a page.
Note: When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value. Do not overuse this method, as it prevents the user from accessing other parts of the page until the box is closed.
The prompt() method returns the input value if the user clicks "OK". If the user clicks "cancel" the method returns null.
On this page of the site you can watch the video online JavaScript How to Get Value From User Using JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Softsite Technologies 23 September 2019, share the link with friends and acquaintances, this video has already been watched 7 times on youtube and it was liked by 0 viewers. Enjoy your viewing!