Javascript Name Prompt Script

Javascript Name Prompt Script


Welcome to my webpage




The code to do this
<center>
<script language="javascript">
<!--

var namePrompt=prompt("What Is Your Name","");
function dispname(namePrompt) {
document.write(""+namePrompt+"");

}
{dispname(namePrompt);
}
//-->
</script><br>
<font size=5 color=green>Welcome to my webpage</font>
</center>