1 <HTML> 2 3 <HEAD> 4 <TITLE>JavaScript Example: Hello World!</TITLE> 5 </HEAD> 6 7 <BODY BGCOLOR="#FFFFFF"> 8 9 <SCRIPT LANGUAGE="JavaScript"> 10 <!-- hide script from old browsers 11 12 document.writeln("<H1>Hello World!</H1>") 13 document.write("JavaScript is being used to write ") 14 document.writeln('this document body "on-the-fly".') 15 document.writeln("<P>") 16 document.writeln("See the corresponding HTML code below.") 17 document.writeln("<P>") 18 document.write("<HR SIZE=3>") 19 20 // end script hiding --> 21 </SCRIPT> 22 23 </BODY> 24 25 </HTML>