<html>
<head>
<title>wow</title>
<script type="text/javascript">
function replaceURL(){
//历史记录不被保存,将无法实现‘后退’
location.replace('http://www.baidu.com');
}
</script>
</head>
<body>
<a href="http://www.baidu.com">baidu</a>
<button onclick="replaceURL()" >replace</button>
</body>
</html>
页面跳转不保存历史轨迹
最新推荐文章于 2024-04-08 10:31:39 发布