[英]Redirect to Previous Page After Message
在提示的功能消息上按“确定”后,我想返回上一页。
代码
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>";
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.