hi,
is that a web control ? if so do it in the server.
If not, what kind of javascript control it's?
probably you do not have Form1 defined. Try using document.all["lblDayHtml"]
also look the html code generated in the browser and see ifyou have such a
control
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"ReidarT" <re****@eivon.no> wrote in message
news:eu*************@TK2MSFTNGP14.phx.gbl...
I want to fill a html control (id) = lblDayHtml with todays day
now = new Date();
date = now.getDate();
day = now.getDay();
document.Form1.lblDayHtml.value = day();
I get the message:
document.Form1.lblDayHtml is null or not an object
regards
Reihaa