Check if an object is defined in html
- by Manikanta
In HTML, I have an object tag as follows:
<OBJECT ID="objectid" CLASSID="some-class-id" CODEBASE="some-codebase">
I have written a function in JavaScript to access this object.
I checked the null value as follows:
if(objectid==null){-----}
i want to check if the object is undefined or is empty. Do we have any functions to check so?