Log in

View Full Version : What is a prompt box..?



spobitsseo
07-05-2017, 02:30 AM
What is a prompt box?

dennis123
07-05-2017, 02:43 AM
A prompt box is a pop up box that allows the user to enter the required inputs. This is done by providing a text box. The prompt box can also have the OK and the cancel button to proceed with the input entered so as to execute the action.

daikaads
07-05-2017, 04:25 AM
Prompt box is a box which is often used if the site owners want the user to input a value before entering a web page or website.

Sherin
09-04-2019, 03:43 AM
The prompt() method displays a dialog box that prompts the visitor for input.

A prompt box is often when we 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.


Example::

<html>
<head>
<script type = "text/javascript">

function getValue() {
var retVal = prompt("Enter your name : ", "your name here");
document.write("Hi : " + retVal);
}

</script>
</head>

<body>
<p>Click to see the result: </p>
<form>
<input type = "button" value = "Click Me" onclick = "getValue();" />
</form>
</body>
</html>

asad1997
09-07-2019, 06:51 AM
A prompt box is a box that is often used if the site owners want the user to input a value before entering a web page or website.

naazaniqua
09-09-2019, 03:10 AM
The prompt () method displays a dialog box asking the visitor for input. The prompt box is often used if you want users to enter values ​​before entering the page. Note: When the prompt box appears, the user must click "OK" or "Cancel" to continue after entering the input value.

RH-Calvin
09-09-2019, 03:25 AM
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.

seocontentdada
09-13-2019, 08:20 AM
A prompt box is a pop-up box that allows the user to enter the required inputs. This is done by providing a text box. The prompt box can also have the OK and the cancel button to proceed with the input entered so as to execute the action.