Code: Select all
window.attachEvent("onload", alert("Onload fired"));Thats awesome, as I only care to support the latest browsers and apparently I don't have to write a cross browser wrapper to do it...so long as the latest and greatest technology is used
I'm curious though, I thought addEventListener was the w3c standard...which I also just tested and it too worked for the 2 browsers...
So which one should I go with, as I don't care about backwards compatability, this won't be released for quite some time to come anyways...
I suppose W3C would be the smart choice...
What I wanted to know was, does anyone know of a chart, website which keeps track of browser differences and amount of w3c DOM supported in each???
Cheers