Beyond jQuery pp 133-159 | Cite as

Browser Events

  • Ray Nicholus
Chapter

Abstract

Reacting to changes on a page is a big part of modern web application development. Although this has always been possible to some degree with anchor links and form submit buttons, the introduction of an events system made it possible to write code that adjusts to user input without the need to reload or changing the current page. You can probably see how this complements the ability to send Ajax requests as well. Since Internet Explorer version 4 (with the introduction of Microsoft’s Trident layout engine) and Netscape Navigator version 2 (along with the first JavaScript implementation), it has been possible to listen for DOM events in order to provide a more dynamic user experience in the browser. The first implementation of this model was quite limited. But as the browser evolved via standardization, so did the events system. Today, we have a fairly elegant native API for listening to and triggering both standardized DOM events and custom events. You’ll see throughout this chapter how you can make use of events in modern browsers to accomplish various tasks.

Keywords

Text Input Custom Event Event Object Event Handler Style Sheet 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

©  Ray Nicholus 2016

Authors and Affiliations

  • Ray Nicholus
    • 1
  1. 1.Johnson CreekUSA

Personalised recommendations