 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
|
Post subject: is function document.onclick() wrong?
Posted: Aug 31, 2006 - 05:04 PM
|
|

Joined: Aug 31, 2006
Posts: 6
|
|
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: |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 02, 2006 - 03:02 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23881
|
|
| 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. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 03, 2006 - 02:43 PM
|
|

Joined: Aug 31, 2006
Posts: 6
|
|
| i know. thanks for your help |
|
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |