1// This is in the PHP file and sends a Javascript alert to the client
2$message = "Something";
3echo "<script type='text/javascript'>alert('$message');</script>";
1javascript:alert('Email enviado com Sucesso!');
2javascript:window.location='index.php';