<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<select id="selectYear"></select>
<script language="javascript">
<!--
var startYear=1900;//起始年份
var endYear=new Date().getUTCFullYear();//终止年份(当前年份)
var obj=document.getElementById('selectYear')
οnlοad=function(){
for (var i=startYear;i<=endYear;i++)obj.options.add(new Option(i,i));
obj.options[obj.options.length-1].selected=1
}
//-->
</script>
</body>
</html>