Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check if function is defined

Status
Not open for further replies.

junkjones

Programmer
Jul 14, 2000
52
GB
Is there a way to check to see if a function is defined? Sort of like checking to see if a variable is defined?

Long story on why I need this, but let's just say that sometimes the function will be there, sometimes it won't.

(The call to the function is in a frame that refreshes all the time, and the function is in another frame that refreshes all the time - when the call to the function runs and tries to run the function while the frame is refreshing, the function is not there and gives an error). I really really really really hope there is a way to check if a function is defined or not!!!

Thanks!!!
 
Yes - if it exists, the true condition runs. However, if it does not exist, it just gives a javscript error. :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top