Check out my latest project: JSBin - live JavaScript pastebin

Archive for the "events" Tag

Poor man's JavaScript Behaviours

JavaScript behaviours are roughly defined as an event handler that is set once, then handled by elements that are created on the fly later on. For example, if I have a list of links referencing images which are loaded inline, adding an removing the links from this list would not require me to re-hook the event [...]

Catch click events before the DOM is loaded

I'm currently working on a project that's heavily JavaScript driven. One of the key goals of the project is to get the user to click a bright yellow button (I won't go in to any more detail than that). The button is perfect, it's eye catching and when you see it, you just want to [...]