Define the simplest function : Function Definition « Function « JavaScript Tutorial






<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
function yourMessage()
{
    alert("Your first function!");
}
//  -->
</script>
</head>
<body>

</body>
</html>








7.1.Function Definition
7.1.1.Functions
7.1.2.Define the simplest function
7.1.3.Define a function
7.1.4.Calculation in function
7.1.5.Recursive function