`
mutongwu
  • 浏览: 437604 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

页面跳转不保存历史轨迹

阅读更多
<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>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics