[Javascript] .fireEvent("onchange") and .onchange();

Peter-Paul Koch gassinaumasis at hotmail.com
Tue Apr 9 03:28:23 CDT 2002


>I work with IE6. Can someone tell me what is the difference between the 
>methods: fireEvent ("onchange") and onchange ()?

fireEvent() is a MS only method while onchange() is cross-browser.

>for example, I have a checkbox: myCheckbox; I can use myCheckbox.fireEvent 
>("onchange") or myCheckbox.onchange (). It seems to do the same think, but 
>fireEvent method takes much more time (with very many objects). Can you 
>tell me why?

Dunno, never tried it. But use onchange() anyway, since it works everywhere.

ppk

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the Javascript mailing list