1、后退 前进
<input type="button" value="后退" onClick="history.go(-1)">
<input type="button" value="前进" onClick="history.go( 1 );return true;">
2、返回
<form><input type="button" value="返回上一步" onClick="history.back(-1)"></form>
3、查看源码
<input type="button" name="view" value="查看源码" onClick="window.location="view-source:" +window.location.href">
原生JS10种常见的网页编程.js代码
最新推荐文章于 2024-06-11 02:06:44 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)