Function call sequence : Function Call « Function « JavaScript Tutorial






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

function secondMessage()
{
    alert("And here is the second!");
}
//  -->
</script>
</head>
<body onLoad="firstMessage()">

</body>
</html>








7.5.Function Call
7.5.1.Call your function
7.5.2.Call function inside a function
7.5.3.Call a function in hyperlink
7.5.4.Call your function in body onLoad event
7.5.5.Nested function call
7.5.6.Function call sequence