How do I verify the existence of an object in JavaScript?
The following works:
if (!null) alert(\"GOT HERE\");
But this throws a
Think it's easiest like this
if(myobject_or_myvar) alert('it exists'); else alert("what the hell you'll talking about");