Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
henry42
22 Post subject: is function document.onclick() wrong?  PostPosted: 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:
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 02, 2006 - 03:02 PM
Registered Member
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
henry42
Post subject:   PostPosted: Sep 03, 2006 - 02:43 PM



Joined: Aug 31, 2006
Posts: 6

i know. thanks for your help
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits