News:

To still receiving newsletters from us please subscribe to our Newsletters:
http://tech.groups.yahoo.com/group/developers-Heaven/

Main Menu

Check if a Javascript Function Exists or Is Defined

Started by admin, March 25, 2010, 05:20:06 AM

Previous topic - Next topic

admin

To check if a Javascript function exists before calling it, try this:

if(typeof yourFunctionName == 'function') {
yourFunctionName();
}