title: SweetAlert confirm redirect
body: <p>I've got this function to reset the game <em>after</em> the user presses <em>delete</em> and then presses <em>ok</em>  again.</p>
  
  <pre><code>function confirmReset() {
    swal({   
            title: "Are you sure you want to reset your game?",   text: "You will not be able to recover your game!",
             type: "warning",   
             showCancelButton: true,   
             confirmButtonColor: "#DD6B55",   
             confirmButtonText: "Yes, delete it!",   
             closeOnConfirm: false 
           }, function(){   
            swal("Deleted!", "Your imaginary file has been deleted.", "success"), 
              function(){
                window.location.href = "includes/php/reset.php?naam=&lt;?php echo $naam ?&gt;";
              }
        });
  }
  </code></pre>
  
  <p>it works <em>if</em> i do the <code>window.location.href</code> at the place were the second <em>swal('deleted'... etc)</em> is at , but if i use a <em>second</em> function <em>after</em>  the user preses <em>OK</em> aswell it wont fire the <code>window.location.href</code> </p>