• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 32. DOM-2 Events and Event Handl... > DOM-2 Events Introduced: Listeners a...

DOM-2 Events Introduced: Listeners and Interfaces

In the original model of events (HTML), you have an event handler such as onload which has a function or string of JavaScript commands attached to it:

<input type="button" onclick="alert('Hello World!');" />
<input type="button" onclick="func1(this);this.value = null" value="Hi" />


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint