hi guys, i am trying to populate a listbox the number of the current month in listbox. and i am using an onload event of the body but it doesnt works. any help please?. i am new on javascript.
function dat(){
var date=new Date();
var Month= toString(date.getMonth()+1)
this.Monthlistbox.options=new Option(Month,Month,true,true);
<body onLoad="dat()">