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