aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes nested javascript functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "nested javascript functions" Watch "nested javascript functions" New topic
Author

nested javascript functions

indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
Hi,

am having 2 JS functions. Function no:1 has to display a link for Function no:2 . Will this be possible with an anchor tag?

function no:1()
{
can I call function no:2 <a href ="....">
}
function no:2()
{
...
}
thanks
indu


thanks,
indu
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
no, the way you have it set up, the function #2 would be private member of function #1

Eric
 
jQuery in Action, 2nd edition
 
subject: nested javascript functions