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

Hour 10. Responding to Events

In your experience with JavaScript so far, most of the scripts you've written have executed in a calm, orderly fashion, moving from the first statement to the last.

In this hour, you'll learn to use the wide variety of event handlers supported by JavaScript. Rather than executing in order, scripts using event handlers can interact directly with the user. You'll use event handlers in just about every script you write in the rest of this book.

Hour 10 covers the following topics:

  • How event handlers work

  • How event handlers relate to objects

  • Creating an event handler

  • Testing an event handler

  • Detecting mouse actions

  • Detecting keyboard actions

  • Intercepting events with a special handler

  • Adding friendly link descriptions to a Web page


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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