...

View Full Version : Does Firefox ignore attachEvent () method?



manis
07-09-2005, 12:23 PM
Hi all,
I think firefox browser ignores attachEvent(). I used it "onload" of window but nothing happened.If anyone can please suggest some alternate way of attachEvent()?
Regards,
manis

Harry Armadillo
07-09-2005, 12:34 PM
attachEvent is an IE-only thing. The W3C standard is addEventListener (http://www.mozilla.org/docs/dom/domref/dom_el_ref31.html).

See also: http://www.quirksmode.org/js/events_advanced.html

manis
07-09-2005, 12:36 PM
great! thanks a lot.

manis
07-09-2005, 01:18 PM
Hi Harry,
Just want to know .. any alternate which is supported by most browsers?
Thanks.

Harry Armadillo
07-09-2005, 01:55 PM
http://www.quirksmode.org/js/events_tradmod.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum