Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

What Time is It?

One common and easy use for JavaScript is to display dates and times. Since JavaScript runs on the browser, the times it displays will be in the user's current time zone. However, you can also use JavaScript to calculate "universal" (UTC) time.

As a basic introduction to JavaScript, you will now create a simple script that displays the current time and the UTC time within a Web page.

Share ThisShare This

Informit Network