How do I verify the existence of an object in JavaScript?
The following works:
if (!null) alert(\"GOT HERE\");
But this throws a
for me this worked for a DOM-object:
if(document.getElementsById('IDname').length != 0 ){ alert("object exist"); }