js点击历史记录
标签:
<!DOCTYPE html><html lang="en">
<head>
<meta charset="UTF-8">
<title>history对象</title>
</head>
<input type="button" value="获取历史记录">
<body>
<script>
var btn=document.getElementById("btn");
btn.onclick=function () {
var length= history.length;
alert(length);
}
</script>
</body>
</html>
js点击历史记录
,温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/42167.html
- 上一篇:webpack多页应用
- 下一篇:前端那些小众而又精美的网站及工具