| <!-- TWO STEPS TO INSTALL NAME WRITE: 
    1.  Paste the coding into the HEAD of your HTML document 
    2.  Add the last code into the BODY of your HTML
document  --> 
 <!-- STEP ONE: Copy this code into the HEAD of your HTML document 
--> 
 <HEAD> 
 <SCRIPT LANGUAGE="Javascript"> 
 <!-- Begin 
 var namePrompt = prompt("Who are you?",""); 
 if (namePrompt == null || namePrompt == "") namePrompt = "Web Surfer"; 
 function dispname(namePrompt) { 
 document.write(""+namePrompt+""); 
 } 
 // End --> 
 </SCRIPT> 
 <!-- STEP TWO: Put this code into the BODY of your HTML document 
--> 
 <BODY> 
 <CENTER> 
 <SCRIPT LANGUAGE="Javascript"> 
 <!-- Begin 
 document.write("<font size=3 color=red>Thanks for visiting, "); 
 dispname(namePrompt); 
 document.write("!</font>"); 
 // End --> 
 </SCRIPT> 
 </CENTER> 
 <!-- Script Size:  0.69 KB  -->  |