Assignment 10: A Simple Greeting Function


This is a simple javascript, which calls the function greet() when the button below is clicked. The script looks something like this...

<SCRIPT> function greet() { var n; n=prompt(What's your name?", " "); alert("Hello, " + n); }; </SCRIPT>

Please try it out

 

 

 

 

 

HOME

created by Daniel Craig