: rudy [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 6:09 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: Current date javascript
Or if anyone has a better script for this purpose, let me know.
yep, i have one
script type=text/javascript
function currentdate() {
if(confirm(Does anybody
JavaScript is choking on the double quotes. It assumes the end of the
string when it sees second set of double quotes.
This line:
document.write(div align=left + lmonth + );
Should read:
document.write(div align='left' + lmonth + );
HTH
- Todd
The WDVL Discussion List
]
| Sent: Friday, June 18, 2004 12:46 AM
| To: [EMAIL PROTECTED]
| Subject: [wdvltalk] RE: Current date javascript
|
|
| JavaScript is choking on the double quotes. It assumes the
| end of the string when it sees second set of double quotes.
|
| This line:
|
| document.write(div align=left
/html
-Original Message-
From: Paul Larue [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 4:02 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] RE: Current date javascript
It would anyway be recommended to show date in an element. Create a DIV
and then use
document.getElementById
Todd,
Thanks for the help. Replacing those quotes fixed it. Thanks!
- Riley
- Original Message -
From: Linden, Todd [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:45 PM
Subject: [wdvltalk] RE: Current date javascript
JavaScript is choking on the double quotes
Or if anyone has a better script for this purpose, let me know.
yep, i have one
script type=text/javascript
function currentdate() {
if(confirm(Does anybody really know what time it is?)) {
alert(Does anybody really care?)
}
}
currentdate();
/script
noscript
pToday is the first