Events are represented by an event object as a member variable of the window object, such as
window.event or whether as a parameter to your
function
Event handlers are Javascript code that are not include inside the <script>
tags, but rather, inside the html tags, that execute Javascript when
some events fire, such as pressing a button, moving your mouse over a link,
submitting a form, etc. The basic syntax of these event handlers is :
name_of_handler="JavaScript code here"
For example:
|