Geeks With Blogs
John Haigh's Blog

Here is a snippet that will check if a JavaScript function exists before executing the JavaScript function.

if(typeof RefreshProducts == 'function')
{   
        RefreshProducts();   
} Posted on Tuesday, October 20, 2009 5:12 PM OO Javascript | Back to top


Comments on this post: Check if a JavaScript Function exists before executing

# re: Check if a JavaScript Function exists before executing
Requesting Gravatar...
nice & good exp, thank for sharing
Left by JavaScript Countdown Timer on Oct 21, 2009 11:02 AM

Your comment:
 (will show your gravatar)


Copyright © John Haigh | Powered by: GeeksWithBlogs.net