Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery dialog capturing true false response

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #179017
    matthisco
    Participant

    Hello,

    Can anyone please tell me how I can access the response of a confirm in an if statement:

    
       if(Confirm("Are you sure you want to delete this payment item?\n\nOnce deleted, it cannot be undone."))
       {
    // send to page if true
          window.location='some page.php';
    
    
    #179020
    matthisco
    Participant

    I have lots of functions like above, how could I use a callback with the dialog, and incorporate it in my functions with my window.location, without rewriting all my functions?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.