...

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



manis
07-09-2005, 11:23 AM
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, 11:34 AM
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, 11:36 AM
great! thanks a lot.

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum