Javascript alert

K

Kerri

Hi,

I have a Javascript alert as below.

alert('Please enter Todays Date');

This works fine.

But I want an apostrophy after the y in Todays. Should be
Today's.

Can I do this in Javascript?

Thanks,
K
 
T

Tom B

Yes you can.
Try using the escape character. It should be \

This isn't an asp question though.
 
J

John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Kerri said:
Hi,

I have a Javascript alert as below.

alert('Please enter Todays Date');

This works fine.

But I want an apostrophy after the y in Todays. Should be
Today's.

Can I do this in Javascript?

Thanks,
K


Use double quotes to enclose the string:

alert("Please enter Today's Date");
 
P

Phillip Windell

The group would be about 1/3rd the size without all the OT posts.
Every OT post generates at least two posts (itself, and the reply to
it that says "don't post this here")

--

Phillip Windell [CCNA, MVP, MCP]
(e-mail address removed)
WAND-TV (ABC Affiliate)
www.wandtv.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top