Make your own free website on Tripod.com

My First JavaScript


Current Time JavaScript

When you view this page in Netscape Navigator 2.0, you will see the current time as set in your computer.


The Details of My First JavaScript

JavaScript is a cross-platform scripting language based on Java that lets you add nifty functions to your Web pages. The Current Time JavaScript program provides an easy way to begin learning JavaScript.

When you edit this page, you will see the following text:

document.write("The current time is "+Date()+"<P>")

This script gets the current time from your computer's clock and displays it next to the text: "The current time is."

To put this text in your Web page, you have three options:

Learn more about JavaScript.


Created with Netscape Navigator Gold 2.0.