Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

Chapter 10. Events

Events are the lifeblood of the most powerful JavaScript applications. At its core, the browser is an event-based programming platform, and a very nice one at that. Without a firm grasp of JavaScript events, we won't be able to create sophisticated programs, so it's essential that we study how exactly event-based programming fits into the whole JavaScript ecosystem.

In this chapter, we'll talk about events and event-based programming, and we'll look at the two main models that are used for browser event systems. We'll also take a look at the MooTools event system, which unifies these two models and makes cross-browser event-based programming easier and more powerful.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial