zoukankan      html  css  js  c++  java
  • js6:history和navigator对象的学习

    原文发布时间为:2008-11-08 —— 来源于本人的百度文章 [由搬家工具导入]

    <html>
    <head>
    <title>js</title>
    </head>
    <body>
    <input type="button" name="goto" Value="Back" onClick="history.back()">
    <input type="button" name="goto2" Value="Forward" onClick="history.forward()">
    <input type="button" name="goto3" Value="go1" onClick="history.go(1)">
    <input type="button" name="goto4" Value="go-1" onClick="history.go(-1)">
    <script type="text/javascript">
    document.write(history.length+"<br>");
    for(var prop in navigator){
    document.write(prop+" : "+navigator[prop]+"<br>");
    }
    </script>
    </body>
    </html>

  • 相关阅读:
    codechef BIBOARD
    Tree
    NOIWC2021总结
    星际穿越
    GDKOI总结
    lg4229
    P3320 [SDOI2015]寻宝游戏
    P6670 [清华集训2016] 汽水
    P6326 Shopping
    P3060 [USACO12NOV]Balanced Trees G
  • 原文地址:https://www.cnblogs.com/handboy/p/7148408.html
Copyright © 2011-2022 走看看