facebook

is function document.onclick() wrong?

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #257912 Reply

    henry42
    Member

    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.
    😯 😯 😯 😯 😯

    #258015 Reply

    Riyad Kalla
    Member

    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.

    #258041 Reply

    henry42
    Member

    i know. thanks for your help

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: is function document.onclick() wrong?

You must be logged in to post in the forum log in