3
I’m doing a test with the plugin SweetAlert
, and would like to open a page by clicking on ok
, but I couldn’t do.
I ran a test using setTimeout
, but she got a lot of wind...
<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>
That’s right Sergio. Thanks for the documentation, I hadn’t seen.
– Diego
@Diego is welcome. jsFiddle can not use
window.location
because they block, but it gets the link.– Sergio