I am testing with the SweetAlert
plugin, and would like to open a page by clicking ok
, but I could not do it.
I did a test using setTimeout
, but there was a lot of gambiarra ...
<html>
<head>
<script src="sweet/dist/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="sweet/dist/sweetalert.css">
</head>
<body>
<script>
swal("Sucesso!", "TAG nº<? print($ordem); ?> editada.", "success");
setTimeout(function() {
window.location = '/manutencao/EditarTag.php';
}, 2000);
</script>
</body>
</html>