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

Chapter 9. Handling Events

Chapter 9. Handling Events

Events are actions that the user performs while visiting your page. When the browser detects an event, such as a mouse click or a key press, it can trigger JavaScript objects associated with that event, called event handlers. In most of the previous chapters in this book, you've seen examples of how event handlers are used. But event handling is such an important technique to understand—and it encompasses virtually all of your pages' interaction with the user—that it deserves its own chapter.

In this chapter, you'll see how to use event handlers to work with windows; capture mouse movements and clicks; deal with form events; and react when the user presses keys on the keyboard.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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