<script language="JavaScript">
<!-- Hide the script from old browsers --
// Michael P. Scholtis (mpscho@planetx.bloomu.edu)

// All rights reserved.  July 28, 1996

// You may use this JavaScript example as you see fit, as long as the

// information within this comment above is included in your script.

var namePrompt = prompt("Please enter your name.","");

function dispname(namePrompt){

			document.write(" "+ namePrompt);

}			
// --End Hiding Here -->
</script>
<center><h1>Prompting for your Name</h1></center>
<p><center>Welcome to my JavaScript pages,
<script language="JavaScript">
<!--
   {dispname(namePrompt);} 
//-->
</script>!</center></p>