码迷,mamicode.com
首页 > Web开发 > 详细

js6:history和navigator对象的学习

时间:2017-07-09 16:08:10      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:button   学习   head   write   war   var   document   html   style   

原文发布时间为: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>

js6:history和navigator对象的学习

标签:button   学习   head   write   war   var   document   html   style   

原文地址:http://www.cnblogs.com/handboy/p/7141589.html

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