<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>
页面跳转不保存历史轨迹
网页跳转与按钮功能
最新推荐文章于 2025-09-04 15:35:01 发布
905

被折叠的 条评论
为什么被折叠?



