Re: Javascript beginner

by "Justin H." <justinh(at)whidbey.net>

 Date:  Sat, 9 Jun 2001 13:11:06 -0700
 To:  "HWG Languages" <hwg-languages(at)hwg.org>
 References:  adelphia
  todo: View Thread, Original
Because getDay() returns an integer between 0 and 6 corresponding with the
days of the week (Sun through Sat).  If you want the day of the month (the
10th), use v.getDate();

Justin H.

----- Original Message -----
From: "InterDesign" <pperry(at)inter-design.net>
To: <hwg-languages(at)hwg.org>
Sent: Saturday, June 09, 2001 12:10 PM
Subject: Javascript beginner


> Hi,
>
> I can manipulate code already written but now I'm trying to write my own
> code. I thought the script I was doing was going to be simple, but it
> doesn't work....here it is....
>
> <script language="JavaScript1.2">
>
> .
> var v = Date();
> var x = v.getDay();
>
>  if (x= 10)
>
>  {
> document.write(v);
>  }
>
> </script>
>
> Can someone tell me what I did wrong?
>
> Thanks,
>
> Phil
>
>

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA