SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Oct 2004
    Location
    Newport Beach
    Posts
    1,741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Have Quotation Marks in Confirm

    Is it possible to have a javascript confirm show quotation marks in the alert?

    Thanks
    Ryan
    Upcoming Movies - Movie News. Updated Daily.
    Movie Trailers - Awesome trailer site. Nuff said.

  2. #2
    SitePoint Member
    Join Date
    Dec 2005
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yup. Just escape them with \

    for example confirm('I want to include \'single quotes\' and "double quotes"'); or confirm("I want to include 'single quotes' and \"double quotes\"");

  3. #3
    SitePoint Wizard
    Join Date
    Oct 2004
    Location
    Newport Beach
    Posts
    1,741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    THat's what I'm talking about!

    Thanks
    Ryan
    Upcoming Movies - Movie News. Updated Daily.
    Movie Trailers - Awesome trailer site. Nuff said.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •