dcsimg

Lesson 11: The Script and Its Effect



The Script

<SCRIPT LANGUAGE="javascript">
/*This script is intended to take information from the user
and place it upon the page*/
var user_name = prompt
("Write your name in the box below","Write it here");
document.write("Hello " + user_name + ". Welcome to my page!");
</SCRIPT>

 

The Script's Effect

 

 

Back to the Index Page