Mega Code Archive

 
Categories / JavaScript Tutorial / Function
 

Nested function call

< html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- function firstMessage() {     alert("Here is the first message!");     secondMessage(); } function secondMessage() {     alert("And here is the second!"); } //  --> </script> </head> <body onLoad="firstMessage()"> </body> </html>