Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'undefined' is undefined?

Status
Not open for further replies.

H2

Programmer
May 17, 2001
24
0
0
HK
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?

Thanks ^^
 
how are you using 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top