Using the Head for Definitions
<HTML> <HEAD> <TITLE>Using the HEAD for definitions</TITLE> <SCRIPT language="JavaScript"> <!-- greeting = "Hi Web surfers!" // --> </SCRIPT> </HEAD> <BODY> <SCRIPT language="JavaScript"> <!-- document.write(greeting) // --> </SCRIPT> </BODY> </HTML>