如何刷新页面的后退按钮点击?
2022-08-30 16:46:56
我使用.htaccess将所有流量路由到单个索引.php文件。下面的代码用于定向流量,但由于某种原因,它不适用于后退按钮。我不知道该怎么做才能使后退按钮正常工作。我已经尝试了各种各样的东西,谷歌搜索了很多,但没有一个工作,所以我希望这里有人可以帮忙!
<?php
if(isset($_GET['parameters'])) {
if($_GET['parameters'] == "repair")
include 'repair.html';
else if($_GET['parameters'] == "training")
include 'training.html';
else if($_GET['parameters'] == "products")
include 'products.html';
else if($_GET['parameters'] == "about")
include 'about.html';
else if($_GET['parameters'] == "employees")
include 'employees.html';
else if($_GET['parameters'] == "training")
include 'training.html';
else if($_GET['parameters'] == "newaccount")
include 'newaccount.html';
else if($_GET['parameters'] == "contact")
include 'contact.html';
else if($_GET['parameters'] == "recommended")
include 'recommended.html';
else if($_GET['parameters'] == "careers")
include 'careers.html';
else
include 'home.html';
}
else
include 'home.html';
?>
到目前为止,我已经尝试过,但未能使用:window.onbeforeunload
body onunload=""
必须有办法或什么!不知何故必须知道语法!onunload=location.reload()