Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>Function passing</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from older browsers function saySomething(message) { alert(message) } // End hiding script from older browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <H2>Famous Presidential Quotes</H2> <HR> <FORM> <INPUT TYPE=BUTTON VALUE="Lincoln" onClick="saySomething('Four score and seven years ago...')"> <INPUT TYPE=BUTTON VALUE="Kennedy" onClick="saySomething('Ask not what your country can do for you...')"> <INPUT TYPE=BUTTON VALUE="Nixon" onClick="saySomething('I am not a crook!')"> </FORM> </BODY> </HTML>