Hello Friends I want to know what a prompt box in website designing is.
Hello Friends I want to know what a prompt box in website designing is.
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>
It is really basic window but I want to match it with my website design. I want to change design of prompt window.
A prompt box is often used if you want the user to input a value before entering a page.
|
Bookmarks