当前位置: 移动技术网 > IT编程>开发语言>JavaScript > JS简单小应用之前进后退效果代码实现

JS简单小应用之前进后退效果代码实现

2018年09月13日  | 移动技术网IT编程  | 我要评论

点击按钮有前进后退效果

<!doctype html>
<html lang="en">

<script>
    console.log(window.history);
    //在地址栏加上?id=数字,会发现控制台的长度变化
    console.log(window.screen.width);
    console.log(window.screen.height);
    alert(window.document);                         
</script>


    <head>
        <meta charset="utf-8">
    </head>
    <body>
         <input type="button" value="前进" onclick="javascript:window.history.forward();" />

         <input type="button" value="后退" onclick="javascript:window.history.back();" />
    </body>
</html>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网