我有将在新页面中重定向的脚本,但我希望该脚本将在上一页重定向,请帮助我:(
if ($tipe_file != "image/jpeg" AND $tipe_file != "image/pjpeg") {
echo "<script>window.alert('Upload image failed, file extention must be *.JPG, u can change your file extension in any software like photoshop, coreldraw or other');
window.location=('../../add.htm')</script>";
}
我如何更改window.location(blablabla)中的脚本?
答案 0 :(得分:0)
您可以使用history.back()
返回上一页。