-
Binding Event Listeners
<p>Traditional Binding The traditional way of binding events is the one that I’ve been using up until now in this chapter. It is by far the simplest, most compatible way of binding event handlers. To use this particular method, you attach a function as a property to the DOM element that you wish to watch. Some samples of attaching events using the traditional method are shown in Listing 6-10.</p>
-
Event Object, this, stopbuble, canceldefalt,
<p>The tricky part of the event object, however, is that Internet Explorer’s implementation is different from the W3C’s specification. Internet Explorer has a single global event object (which can be reliably found in the global variable property window.event), whereas every other browser has a single argument passed to it, containing the event object.</p>
-
Static Method or Singleton
<p>You don't need a "new" operation to create object to use the method.</p>
-
Priviate, Privileged, Public memeber
<p>Here is some example code. For detailed see <a href="http://javascript.crockford.com/private.html">this</a></p>
-
Context
<p> The way context works is through the this variable. The this variable will always refer to the objet that the code is currently inside of. Remember that global objects will actually properties of the window object. This means that even in a global context, the this variable will still refer to an object. Context can be a powerful tool and is an essential one for object-oriented code. </p>