I have some javascript which works on IE5.5 or later but not on IE5. The error is 'undefined' is undefined. I believe that IE5 does not recognise this keyword. Is there a way solve it?
this is incorrect
if (myObject != undefined){
//do something
}
try this instead
if (myObject){
//do something
}
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.