Monday, June 16, 2008

Events in JavaScript


What is Event in JavaScript...???


Every time anything happens to a page or an object in the page an event is triggered.

Here few examples of events.
  • onload
  • onChange
  • onMouseOver
  • onResize
  • onError
  • onUnload
  • onSubmit
  • onAbort
  • onClick
and etc...

We can use these events to trigger our scripts, or more correctly, to trigger a function.

No comments: