Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call a function from within a function

Status
Not open for further replies.

rshandy

Technical User
Dec 26, 2003
91
US
Can I call a function while executing another function(nested functions)?

 
Sure, here's an example:
Code:
<script language=javascript>
function sayHello() {
   alert("hello");
}
function callHelloFunction() {
   sayHello();
}
callHelloFunction();
</script>

-kaht

Weaseling out of things is important to learn. It's what separates us from the animals... except the weasel. - Homer Simpson (no, I'm not Homer)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top