问题描述
function function_alert($message) {
// display the alert Box
echo "<script>alert('$message');
document.location='javascript://history.go(-1)';
</script>";
}
// Function call
function_alert("This email has already subscribed");
}
非常感谢您!
解决方法
尝试过
function function_alert($message) {
echo "<script>
alert('$message')
history.back()
</script>";
}