码迷,mamicode.com
首页 > 其他好文 > 详细

前进+后退+刷新

时间:2017-09-26 17:54:36      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:ati   code   window   set   nbsp   html   document   col   刷新   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>Document</title>
</head>
<body>
    <input type=button value=刷新 onclick="window.location.reload()">
    <input type=button value=前进 onclick="window.history.go(1)">
    <input type=button value=后退 onclick="window.history.go(-1)">
    <input type=button value=前进 onclick="window.history.forward()">
    <input type=button value=后退 onclick="window.history.back()"> 后退+刷新<input type=button value=后退 onclick="window.history.go(-1);window.location.reload()">
</body>
</html>

 

前进+后退+刷新

标签:ati   code   window   set   nbsp   html   document   col   刷新   

原文地址:http://www.cnblogs.com/handsome-jm/p/7597565.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!