Object Oriented Programming and Event Handlers
When I started writing Object Oriented Javascript, there was one major pitfall: Event handlers. Event handlers are functions that are launched when a certain event occurs inside the browser, say a click on an image. Most people are familar with the onclick, onload (…) attributes in HTML and a few selected ones even know how [...]