Element Events

In this section we're going to examine element events. Each element in a page can fire (or invoke) a variety of events. By default neither of these events is attached. You've to add an event handler explicitly. To add a handler you need to have an element's instance first.

To get the instance you retrieve an element through these ways:

Exercise

In this exercise you use the Tab [Control], group [Element Events] to attach events to elements below:

This DIV can fire events
  1. A Hyperlink: Google
  2. A Hyperlink: Microsoft
  3. A Hyperlink: Apple
A button can even fire in design mode: