Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have one doubt. Can we call javascript function within another javascript function. If anybody know this plz help me.
Posted

Yes absolutely. We can always call a function from another function. For a very simple example see http://www.java2s.com/Tutorial/JavaScript/0140__Function/Callfunctioninsideafunction.htm.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-Apr-11 2:54am    
Don't you take it too serious? :-) My 5, for sure.
Will you look at my Answer.... :-)
--SA
Abhinav S 19-Apr-11 3:06am    
Thank you. I had a look at your answer as well.
Jayanthi-SE 19-Apr-11 3:14am    
thank u very much i got answer
Sergey Alexandrovich Kryukov 19-Apr-11 3:15am    
You got it.
Will you formally accept both Solutions? That's all per your Question, I guess...
Thank you.
--SA
Jayanthi-SE 2-May-11 5:21am    
ok thanks
Yes.

(The above line was the only one in my answer, but the site reported back "The content is too short.".
I's using this opportunity to ask a question: Imagine for a second it was not allowed. Could you consider programming in this language possible?! :-))

—SA
 
Share this answer
 
Comments
Abhinav S 19-Apr-11 3:06am    
Ha ha. 5.
Sergey Alexandrovich Kryukov 19-Apr-11 3:14am    
Thank you, Abhinav.
--SA
Jayanthi-SE 19-Apr-11 3:15am    
thanks for ur immediate response. I got answer for this
Sergey Alexandrovich Kryukov 19-Apr-11 3:17am    
You're very welcome.
I suggest you can hit this green "Accept" buttons now.
--SA
Jayanthi-SE 2-May-11 5:20am    
ok

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900