108 reputation
3
bio website
location
age
visits member for 1 year, 10 months
seen Feb 15 '13 at 20:08

The line between opinion and fact needs a huge guardband!

I only support modern browsers so that I don't have to read quirks-mode articles.

Code Bin

function addEvent (element, type, callback) {
    if (element.addEventListener) { 
        element.addEventListener(type, callback); 
    } else if (element.attachEvent) { 
        element.attachEvent("on" + type, callback); 
    } else {
        $.error('addEvent: no event system')
    }
}

This user has not answered any questions

1 Vote Cast

all time   by type  
1 up 0 question
0 down 1 answer