MyEclipse: is function document.onclick() wrong?

henry42 - Aug 31, 2006 - 05:04 PM
Post subject: is function document.onclick() wrong?
when i wrote "function document.onclick(){} "
myeclipse told me it is wrong,but it can be run correctly in my IE.
The file was committed to CVS by someone,so i can not change it.
My questions is what's wrong with the code? and what can i do to tolerate the mistake(I do not like to see the big red "X" everywhere)
Hope u can understand me for my poor English.Thank u.
:shock: :shock: :shock: :shock: :shock:
support-rkalla - Sep 02, 2006 - 03:02 PM
Post subject:
I believe the problem is that you are defining a function that already exists on every html element. I would never suggest you use IE to tell if JavaScript or CSS is valid, try installing FireFox with the web developer plugin for your testing and development, that can help a lot.
henry42 - Sep 03, 2006 - 02:43 PM
Post subject:
i know. thanks for your help
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits