There are many methods to check if an object is null in javascript, this post gives most of the options that can used to detect this. http://lists.evolt.org/archive/Week-of-Mon-20050214/169524.html
Well, first of all, in JavaScript null is an object. There’s another
value for things that don’t exist, undefined. The DOM returns null for
almost all cases where it fails to [...]
Filed under: Javascript | 6 Comments »