fabien-d / alertify.js

JavaScript Alert/Notification System
http://fabien-d.github.com/alertify.js/
4.26k stars 726 forks source link

a href tag #274

Open TeeeeJay opened 5 years ago

TeeeeJay commented 5 years ago

Dear Fabien, hope all is well, you answered a question before for a href

``

`$(document).ready(function(){ $('.delete-page').on('click', function(event){ // add me, stop the default link from clicking event.preventDefault();

    alertify.confirm("Message", function (e) {
      if (e) {
          // use window.location and go to a->href
      } else {            
        return false; 
      }        
  });     
});

});`

what if i have an id thats passed with in href?xxxx?$id? when a user clicks in the table it takes the id so, i guess in this case it wont work?

Thank you so much