Subj : Re: Calling a function before it's declared To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed Nov 24 2004 05:06 pm Brook Monroe wrote: > Declaration order isn't > critical. Calling functions that haven't been defined yet will work > because the call resolution occurs at run-time, not compile time. You can call a function before its declaration as program execution is defined to be a two pass execution where the first pass goes through the program and executes all function declarations and then the second pass executes the global statements (e.g function calls) in source order. -- Martin Honnen http://JavaScript.FAQTs.com/ .