In this second article in a three part series, we will delve more deeply into how Netscape, Mozilla, and Internet Explorer manipulate event handlers, and take a look at building a simple drop-down menu.
Handling events with the DOM, part II (Page 1 of 4 )
Introduction
Welcome back to Handling Events with the DOM. To refresh your memory a bit, in Part I, we introduced important concepts about the assignment of event handlers in Web pages, as well as a detailed look at the DOM event flow, covering in-depth definitions of Event Capture and Event Bubble. As we go deeper into this territory, numerous browser incompatibilities are still messing up a Web developer's life, adding more inconsistencies to the already long non-standard world of the Web.
However, all is not lost. Efforts have been underway, particularly at the W3C, to establish common standards for all browsers. Hopefully, we’ll see browser manufacturers pointing their best efforts toward releasing better, more standards-compliant products. But, as with anything in life, time will tell. In the meantime, we must settle for using the currently available DOM proprietary methods, implemented in today’s browsers.
Over this second part, we’ll be illustrating some of the most common methods offered by popular browsers to manipulate event handlers using the DOM. Let’s start finding out more about how NS6+ and Mozilla manipulate event handlers.