<buttontype="button" class="btn btn-danger alert-confirm m-b-10" onclick="_gaq.push(['_trackEvent', 'example', 'try', 'alert-confirm'])"><i class="fa fa-trash fa-lg"></i></button>
What I want is that by clicking on the confirmation button it redirects me to another page but this modal that I am using only has that code which is the code of the button to open the modal my question is how to redirect to another page after the modal confirmation.
modal:
document.querySelector('.alert-confirm').onclick = function(){
swal({
title: "Tem a certeza?",
text: "Se eliminar não voltará a ver este conteudo!",
type: "warning",
showCancelButton: true,
confirmButtonClass: "btn-danger",
confirmButtonText: "Sim, apagar isto!",
closeOnConfirm: false
},
function(){
swal("Apagado!", "A Informação foi apagada permanentemente.", "success");
});
};