helloJS.html

<HTML>
<HEAD>
<script language="JavaScript">
function getname() {	
  username = prompt('Please enter your name',"");
  while (username == "" ) {  	
  	alert("Name not valid");
	username = prompt('Please enter your name',"");
  }
  document.write("Hello " + username + "<br>")
}
</script>
</HEAD>
<BODY>
<SCRIPT>
getname();
document.write('<BR>');
</SCRIPT>
</BODY>
</HTML>

Generated by GNU enscript 1.6.4.