SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    'are you sute?' popup dialog

    just what the title says. I'm looking for a script to have an "Are you sure?" dialog on my site for the administration. Click ok, or cancel, and the link originally clicked does its thing.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    HTML Code:
    <a href="mypage.html" onclick="return confirm('Do you really want to go to this page?');">Link</a>
    Basically, this will return true if the user clicks "OK" (so the link will perform its action), or false if the user clicks "Cancel" (stopping the link from going anywhere that time).

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, works perfect.


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
  •