Hey Guys,

I am writing a tutorial for Spoono and I am running into a problem. This is a javascript tutorial that asks for input from a user through a prompt box, which is stored in the variable name. Then, there is a text box and submit button; when the user clicks on the Submit button, the variable name shows up in the text box. The script I have right now produces nothing in the text box. Here it is:

Code:
<html>
<head>
<script language = "Javascript">
	function input()
	{
	var name = prompt("What is your name?","Type Name Here");
	}
</script>
	<title>Input Example</title>
</head>

<body onLoad = "input()">
<form name = "myform">
	<input name = "mytext" type="Text" size=50>
	<input type="Submit" onClick="myform.mytext.value= name; return false;">
</form>
</body>
</html>