Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    1
    Member #
    58133

    Pop up window for confirmation and proceeding

    I even don`t know in what code languages must be done...
    I need when when is klicked on the link to apeear popup window with option for confirmation option/question and when it be confirmed to proceed to the url ot the link, if not confirmed - not proceed to the url... and back to the current url.

  2.  

  3. #2
    Member Matt @ BSH's Avatar
    Join Date
    Jan 2018
    Location
    Liverpool, UK
    Posts
    60
    Member #
    58134
    Liked
    5 times
    Make sure you have jQuery inserted into your page.

    jQuery:

    Code:
    $("#button").click(function() {
        var confirm1 = confirm('Do you want to confirm?');
        if (confirm1) {
          alert('Confirmed True - Do whatever');
        } else {
          alert('Confirmed False - Do nothing');
        }
    });
    Just make an <a> tag with the ID of button as seen in the code and this will perform your confirmation request.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:45 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com