SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clicking on a link -> yes/no alertbox

    What would the JS code be for the following approach:

    I have a link and when someone clicks on it an yes/no alertbox pops up. If the user clicks "no", the alertbox disappears and if he clicked "yes" the alertbox disappears and the user is redirected to the page *under* the link.

    Thanks in advance.

    PS: some nice-to-transform function would be nice.

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *under*?

    <a href="some_url.html" onclick="return confirm('Follow this link?')">
    ::: certified wild guess :::

  3. #3
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. By *under* I meant *behind*.

  4. #4
    ********* Janitor levik's Avatar
    Join Date
    Jan 2003
    Location
    New York
    Posts
    885
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *behind*?

    Sorry, just being difficult.

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2003
    Location
    USA
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx....i did this b4 by making a separate [php] page and making it into a popup but now can do it this way


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
  •