dcsimg

Lesson 44: The Script and Its Effect



The Script

<SCRIPT LANGUAGE="JavaScript">

var dayName=new Array(7)
dayName[0]="Sunday"
dayName[1]="Monday"
dayName[2]="Tuesday"
dayName[3]="Wednesday"
dayName[4]="Thursday"
dayName[5]="Friday"
dayName[6]="Saturday"

var y=new Date();
var Today = y.getDay()

document.write("Today is "+dayName[Today] + ".");

</SCRIPT>

 

The Script's Effect

 

Back to the Index Page