Show the prompt() dialog
Description
prompt()
dialog prompts the user for input.
Example
<!DOCTYPE HTML>
<html>
<body>
<script type="text/javascript">
var result = prompt("What is your name? ", "");
if (result !== null) { <!-- w w w .j a va 2 s. c o m-->
document.writeln("Welcome, " + result);
}
</script>
</body>
</html>