Anyone please tell and discuss about the prompt box in UIdesigning process !
Anyone please tell and discuss about the prompt box in UIdesigning process !
Prompt Box. 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.
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.
Prompt() is a method of the window object.
It is similar with alert box except for one addition.
Prompt Box have “Cancle Button” on the pop up window.
Prompt Box have “textbox” , which allows user to enter value.
<html>
<head>
<script type="text/javascript">
function show_prompt()
{
var name=prompt("Please enter your name","Pritesh");
if(name!=null && name!="")
{
document.write("<p>Hello " + name + "</p>");
}
}
</script>
</head>
<body>
<input type="button"
onclick="show_prompt()"
value="Show prompt box"/>
</body>
</html>
prompt box - a booth projecting above the floor in the front of a stage where the prompter sits; opens toward the performers on stage.
A confirmation dialog is a dialog box that asks the user to approve requested operation also called the prompt box.
Prompt box means to need to need the user confirmation or input for performing the specific task. For example when you are installing any software and click on the install button and a dialog box is open and ask you for your confirmation.
A prompt box is used to get data from the user. A prompt box will appear with an "OK" button and a "Cancel" button. Different actions will occur depending on what button the user clicks. If the user clicks the "OK" button, the value entered into the prompt box will be set. If the user clicks the "Cancel" button, a null value (empty string) will be set, or a default value if you set it as the second argument in the function.
A prompt box can be displayed using Javascript's prompt() function.
Syntax:
prompt("Text to display in the prompt box, "Default value");
|
Bookmarks