Shelane, >Is there a test to know if a function has been defined or declared? > >function modify(){ > ...my code >} > >if(function('modify')) > > >or something like that?
A function is just a variable. if( !!modify ) alert("exists"); if( typeof modify == "function" ) alert("exists and is a function"); These are just a few methods of testing. -Dan