Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Javascript alert

Reply
Thread Tools

Javascript alert

 
 
Kerri
Guest
Posts: n/a
 
      10-01-2003
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
 
Reply With Quote
 
 
 
 
Tom B
Guest
Posts: n/a
 
      10-01-2003
Yes you can.
Try using the escape character. It should be \

This isn't an asp question though.


"Kerri" <(E-Mail Removed)> wrote in message
news:0c1601c3881d$307d4110$(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      10-01-2003
www.aspfaq.com/5001
Escape with a \.
alert('Please enter today\'s date.');

Ray at work

"Kerri" <(E-Mail Removed)> wrote in message
news:0c1601c3881d$307d4110$(E-Mail Removed)...
> 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



 
Reply With Quote
 
John Blessing
Guest
Posts: n/a
 
      10-01-2003
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" <(E-Mail Removed)> wrote in message
news:0c1601c3881d$307d4110$(E-Mail Removed)...
> 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");
--
John Blessing


 
Reply With Quote
 
Bullschmidt
Guest
Posts: n/a
 
      10-02-2003
Here's a good JavaScript board:
http://www.codingforums.com/forumdis...p?s=&forumid=2

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a
 
      10-02-2003
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]
http://www.velocityreviews.com/forums/(E-Mail Removed)
WAND-TV (ABC Affiliate)
www.wandtv.com

"Bob Barrows" <(E-Mail Removed)> wrote in message
news:1bc401c38820$4c5f4970$(E-Mail Removed)...
> This is client-side functionality which is off-topic on
> this asp newsgroup (asp is server-side technology). In the
> future, please direct your client-side questions to an
> appropriate group. Look for groups with "dhtml" in their
> names (it also helps if the name includes "jscript").
> m.p.scripting.jscript is also appropriate. More below:



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert..General Alert?..New Discovery?. =?Utf-8?B?U3BhbW1lcipLaWxsZXI=?= Wireless Networking 0 07-24-2007 03:36 PM
on click in popup window throws alert : need to avoid alert of postdata Ganesh ASP .Net 0 06-29-2007 06:51 AM
How to create a form Alert - Not using Alert Boxes Mersh Java 0 03-13-2007 04:14 PM
Detect whether javascript threw an alert window (with javascript) umdsasha@gmail.com Javascript 3 08-24-2006 06:25 AM
ALERT: Virus Scam Alert! Toronto Garage Door Company Computer Support 1 11-18-2003 04:16 PM



Advertisments