Hi,
I use this code to redirect my current page. I want to give an alert to the user after redirection. I use these codes:
header("Location: ../../admin/manage");
echo '<script type="text/javascript">fail();'
</script>';
script>
function success() {
alert("File deleted successfully!");
}
function fail() {
alert("File not found");
}
</script>
The alert is not shown.