views:

62

answers:

1

Hi folks,

cross-browser handling is quite a hassle sometimes.

In this case I need to capture quite a number of events, but cannot afford to use a multi purpose library that exceeds 10ish Kb. (e.g. jQuery, Prototype, Dojo, YUI, ...)

The script is meant as a basic tracking tool for various sites I'm maintaining.

Every browser seems to handle events slightly and sometimes completely differently!

alt text


I would be really happy if someone could point me out to a javascript library meant for cross-browser event handling.

This would make my day!! =)

+4  A: 

Dean Edwards' : http://dean.edwards.name/weblog/2005/10/add-event2/

Or the one from John Resig: http://ejohn.org/blog/flexible-javascript-events/

I.devries
Pretty good links. The first one is simple and awesome. It is less than a KB. +1
mohang
@l.devries Thanks so much! I'll check these out! John Resig always has cool stuff on his blog! =)
RadiantHex
Hey @devries, I'm not sure if this fixes the cross-browser incompatibility of focus and blur for example?
RadiantHex
Works awesomely thanks =)
RadiantHex