【发布时间】:2020-09-28 05:08:12
【问题描述】:
在提示的功能信息上按“确定”后,我想返回上一页。
PHP 代码
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");
}
非常感谢!
【问题讨论】:
标签: javascript php redirect alert message