Mega Code Archive

 
Categories / JavaScript DHTML / Language Basics
 

Event Handler with Multiple Statements in Attribute Value

<HTML> <HEAD> <TITLE>Event Handler With Multiple Statements</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!--     count=0 //--> </SCRIPT> </HEAD> <BODY> <H1>Event Handler With Multiple Statements</H1> <P><A HREF="http://www.rntsoft.com" ONMOUSEOVER='++count; alert("You moved your mouse here "+count+" times!")'>Displays the number of times you move your mouse over this link.</A></P> </BODY> </HTML>