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