To check if a Javascript function exists before calling it, try this:
if(typeof yourFunctionName == 'function') { yourFunctionName(); }
Post a Comment
No comments:
Post a Comment