Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Function passing</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from older browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. 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>