Type the following code in word pad.
Save as js2.htm in the JavaScript folder.