Running a Script from User Action
<HTML> <HEAD> <TITLE>An onClick script</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- function alertUser() { alert("Ouch!") } // --> </SCRIPT> </HEAD> <BODY> Here is some body text. <FORM> <INPUT TYPE="text" NAME="entry"> <INPUT TYPE="button" NAME="oneButton" VALUE="Press Me!" onClick="alertUser()"> </FORM> </BODY> </HTML>