|
|
Prompt for users name
This example will prompt for a users name then display that name on the page
|
<script language="javascript">
<!--
var myname = prompt("please enter your name" , "your name");
document.write("<b>");
document.write("Hello there " + myname);
document.write("</b>");
//-->
</script> |
|
|
|
|
|