Javascript Check If Object Is Valid
Posted by tech on
June 30, 2008
|
|
Checks if an object exists in the document using Javascript.
1 2 3 4 5 | function isValidObject(objToTest) { if (null == objToTest) return false; if ("undefined" == typeof(objToTest)) return false; return true; } |

/rating_on.png)








