It is quite simple to change the background color of the webpage according to the days of a week. You can do this by using a series of ifs. The code is as follows, but it only works in Internet Explorer.
Author: Liew Voon Kiong
Lesson 25 is added!
Lesson 25 is added to our tutorial. It shows you how to created random values using an array.
Click on the link below to view the latest lesson.
Lesson 24 is Added!
Yet another lesson is added to our JavaScript Tutorial. This lesson shows you how to sort the data in an array.
Click on the link below to view to page now.
Lesson 23 is Added
We have added lesson 23 to our tutorial. In this lesson, you will learn how to create arrays with known values and perform some arithmetic calculations. Click on the following link to view the lesson.
New lesson added!
Another lesson is added to our JavaScript Tutorial. It is about creating arrays in JavaScript. Click on the link below to learn more.