Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>My first script</TITLE> </HEAD> <BODY BGCOLOR=WHITE> <H1> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers /* This is an example of a long JavaScript comment. Note the characters at the beginning and ending of the comment. This script adds the words "Hello, world!" into the body area of the HTML page. */ document.write("Hello, world!") // End hiding script from old browsers --> </SCRIPT> </H1> </BODY> </HTML>