Javascript: a function calls another fucntion MyEclipse IDE > Off Topic This topic has 1 reply, 2 voices, and was last updated 16 years, 2 months ago by Loyal Water. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts September 21, 2008 at 10:19 pm #289223 Reply Gabriel Khoa BuiMember Hi all, I have some simple javascript code; function function1(){ alert(method1); } function function2(){ alert(method2); } function process(parameter){ function1(); //or function2(); } How can I use function process() to call either function1() or function2() bases on the parameter? Thanks, September 23, 2008 at 10:04 am #289284 Reply Loyal WaterMember Khoa, You can refer to this link:- http://www.mediacollege.com/internet/javascript/tutorial/function.html Author Posts Viewing 2 posts - 1 through 2 (of 2 total) Reply To: Javascript: a function calls another fucntion You must be logged in to post in the forum log in