Which browsers did you run this on?  ref: http://www.quirksmode.org/js/events_properties.html