[thelist] Onload not finding JS function
Tab Alleman
Tab.Alleman at realmetros.com
Mon Jun 24 11:23:03 CDT 2002
I've got a page that starts with this:
<html>
<head>
<title>
blahblah
</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function SetDates()
{
alert("Now in SetDates!");
Var Today = New Date();
Var ThisMonth = Today.GetMonth();
Var ThisDay = Today.GetDay;
Var ThisYear = Today.GetYear;
document.mainForm.arrivalMonth.SelectedIndex = ThisMonth;
}
//-->
</SCRIPT>
</head>
<body text=#000000 link=#0033FF vlink=#0033CC bgcolor=#0000CC
onLoad="SetDates()">
...
But when I load the page, I get an error "Object Expected" in the
"<body..." line, and the alert does not triggered.
What am I missing?
TIA
Tab
More information about the thelist
mailing list