Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>Multiple Scripts</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from older browsers hasFlash = false for (i=0; i<navigator.plugins.length; i++) { if (navigator.plugins[i].name.indexOf("Flash") >= 0) { hasFlash = true } } function saySomething(message) { alert(message) } // End hiding script from older browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <H2> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from older browsers if (hasFlash) { document.write("You have Flash, you lucky person, you!") } else { document.write("Sorry, you don't have Flash.") } // End hiding script from older browsers --> </SCRIPT> <HR> 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>