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