if (isNaN(x) == true) {
//This is not a number, deal with it
}
-----Original Message-----
From: Iztok Polanic [mailto:iztokp at amis.net]
Sent: den 20 november 2002 11:44
To: javascript at LaTech.edu
Subject: [Javascript] NaN
Hi!
I was trying to catch NaN (Not a Number) via
x = Number(something);
if (x == "NaN") {
...
}
and it does not work. Why? I'm using IE 6.0 and JS 1.5. Can somebody
tell me
what cained of error is IE 5.x throwing back to user?
TNX!
Bye,
Iztok
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript