Hat jemand eine Idee wieso das nicht funktioniert?
Code
echo "<script src='https://unpkg.com/sweetalert/dist/sweetalert.min.js'></script>";
echo "<script>";
echo "setTimeout(function() {";
echo "swal({";
echo "title: 'Wow!',";
echo "text: 'Message!',";
echo "type: 'success'";
echo "}, function() {";
echo "window.location = 'redirectURL';";
echo "});";
echo "}, 1);";
echo "</script>";
Alles anzeigen
Gruß Marvin