A prompt box is often used if you want the user to input a value before entering a page.When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value.If the user clicks "OK" the box returns the input value. If the user clicks "Cancel" the box returns null.Syntaxwindow.prompt("sometext","defaultvalue");
Javascript
Topic: JS PopupAlert
Explain the Prompt Box?
Browse random answers:
What are the Popup Boxes?
what is an Alert Box?
What is a Confirm Box?
Explain the Prompt Box?
What is a Line Breaks?
What is the difference between an alert box and a confirmation box?
How to create a popup warning box?
How to create a confirmation box?
How to create an input box?
How to get value from a textbox?
How to get value from dropdown (select) control?
How to get value from dropdown (select) control?