It's strange, isn't it? After so many years of standards, you would've thought that you could write a simple piece of script that would work in all browsers. Alas, this is not always the case. With browsers adding their own proprietary stuff and actually failing to implement standards (one, in particular, being quite notorious), it just makes things harder than they should be.
However, it's not all bad. You can still write scripts which work in pretty much all browsers. OK, I'll qualify that - all modern browsers.
Having seen some of the horrible proprietary code still floating around, I thought it would make sense to have a collection of short articles that help to write code that can work in all browsers. This should include general guidelines and code snippets.
In Part 1 - Browsers and Standards, we discuss why browser detection should be avoided, why object detection should be used and why we should use standards.
The W3C and Microsoft event object models are very different. In Part 2 - Event Normalization, volectricity describes how you can normalize them.