Lesson 15: The Script and Its Effect



The Script

<SCRIPT LANGUAGE="JavaScript">
var dayName=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var y=new Date();
document.write("Today is "+dayName[y.getDay()] + ".");
</SCRIPT>

 

The Script's Effect

 

Back to the Index Page