Get value from prompt dialog and display it on another dialog : prompt « Dialogs « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="javascript">
<!--
yourname = prompt("What is your name?","Type your name here ...");
alert(yourname);
//  -->
</script>
</head>
<body>

</body>
</html>








13.3.prompt
13.3.1.prompt Dialog
13.3.2.Prompt dialog with default value
13.3.3.Get value from prompt dialog and display it on another dialog