To check if a Javascript function exists before calling it, try this:
if (typeof yourFunctionName == "function") {
yourFunctionName();
}
Source:
http://www.idealog.us/2007/02/check_if_a_java.html
To check if a Javascript function exists before calling it, try this:
if (typeof yourFunctionName == "function") {
yourFunctionName();
}
Source:
http://www.idealog.us/2007/02/check_if_a_java.html
Great! Thanks for the share!
Hi there! Where can I get more posts on this topic?