SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    quotation marks in confirm()

    Hello everybody,

    is it possible to have a quotation marks in a confirm box using the confirm() function?

    something like this:

    confirm(' do you really want to delete the file "test.php" ');

    thanks a lot,

    fabian

  2. #2
    SitePoint Zealot ChestRockwell's Avatar
    Join Date
    Nov 2003
    Location
    New Jersey
    Posts
    195
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    escape the quotes like so:
    confirm("do you really want to delete the file \"test.php\" ");
    -- Joe C --
    "Do or do not. There is no try..."
    - Yoda

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks!


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
  •