This is a simple javascript, which calls the function greet() when the button below is clicked. The script looks something like this...
Please try it out
created by Daniel Craig