View Full Version : Does Firefox ignore attachEvent () method?
07-09-2005, 12:23 PM
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()?
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
07-09-2005, 12:36 PM
great! thanks a lot.
07-09-2005, 01:18 PM
Just want to know .. any alternate which is supported by most browsers?
07-09-2005, 01:55 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.