Assign returning value from prompt dialog box to your variable
<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>