It is important to distinguish the terminology used regarding events, especially since Netscape and Microsoft use the same words slightly differently. Just to be clear, I shall list terminology from a Netscape perspective and give the Microsoft equivalence.
Aka Event Type. This is the event that occurs. EG: click. This is a user action or conditions that the browser recognizes as an event.
onclick.
This is usually the attribute of an element that identifies what event occurred and has a value that evaluates to script that handles the event, i.e. the event handler code.
This is typical syntax for registering an event handler. The "onevent" is the event handler.
<tag onevent="event handler code" ...>
Here is an example. The "onclick" is the event handler.
<a onclick="RunMe()" ....>
What Netscape refers to as an "event handler", Microsoft refers to as an "event".
This is the script that runs when an event fires.
Here are some typical examples of Event Handler Code:
alert('hi!')
<script language="JavaScript">
function RunMe(){
alert('hi!')
}
What Netscape refers to as "Event Handler Code", Microsoft refers to as "Event Handler".
This is the object is a direct child of the window object. It has information about the event that just occurred. Its syntax is:
event.property
window.event.property
Page Modified: (Hand noted: 2007-08-28 17:13:00Z) (Auto noted: 2007-11-17 06:42:16Z)