首页 > Web开发 > 详细

js点击历史记录

时间:2019-11-30 19:15:41      阅读:75      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>history对象</title>
</head>
<input type="button" id="btn" value="获取历史记录">
<body>


<script>
var btn=document.getElementById("btn");
btn.onclick=function () {
var length= history.length;
alert(length);
}
</script>
</body>
</html>

技术分享图片

 

       

js点击历史记录

原文:https://www.cnblogs.com/soyadios/p/11963460.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!