I am trying to execute a function only if an element with that id exists on the document. I am trying something like:
But to no avail, am I treading the right path?
Thanks in advance,
G
-Geeeeeeeeeeeeeeeeeeeeeeee-
JavaScript:
if (divObj = document.getElementById("container")) {
Execute Function
}
But to no avail, am I treading the right path?
Thanks in advance,
G
-Geeeeeeeeeeeeeeeeeeeeeeee-