midsmanuk
07-08-2007, 10:05 AM
Why does this code not run
<HTML>
<HEAD>
<TITLE>mikes test</TITLE>
</HEAD>
<BODY>
/* Program which uses a while loop to display a calendar for a given year */
//Write your code below:
var year= parseFloat(window.prompt('Enter Year',"));
var date = newDate(year, 0);
for (var month = 0; month<12; month = month + 1)
{
date.set Month(month); // update the month
displayMonth(date) // display the calendar for that month
}
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>mikes test</TITLE>
</HEAD>
<BODY>
/* Program which uses a while loop to display a calendar for a given year */
//Write your code below:
var year= parseFloat(window.prompt('Enter Year',"));
var date = newDate(year, 0);
for (var month = 0; month<12; month = month + 1)
{
date.set Month(month); // update the month
displayMonth(date) // display the calendar for that month
}
</BODY>
</HTML>