JavaScript Programming
JavaScript > Code Examples
A function with only one statement
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
A function with only one statement
<html>
<head>
<title>A Simple Page - Happy Codings :-) JavaScript Code Examples</title>
<script language="JavaScript">
function yourMessage()
{
alert("Your first function!");
}
</script>
</head>
<body>
<p>
Happy Codings :-) JavaScript Code Examples
<br>
</p>
</body>
</html>