I do not know why this code only display a few years and it goes back all the way to negative years.
I have this in the head:
now = new Date();
year = now.getYear();
and this in the body:
<select>
<option>Year</option>
<script type="text/javascript">
for(i=0 ; i<100 ; i++) {
year = year - i;
document.write("<option>" + year + "</option>");
}
</script>
</select>
I meant for it to display the past hundred years.
Test the script to understand what i mean.
Pls tell me what is the problem. Thanks.


