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