setInterval、history和navigator
来源:互联网 发布:mysql怎么导入mdf文件 编辑:程序博客网 时间:2024/06/05 14:19
<!doctype html><html lang="en"><head><meta charset="UTF-8"><title>setInterval、history和navigator</title></head><body><input type="text" id="time1"><input type="text" id="time2"><button id="btn" onclick="test()">清除时间</button><button id="btn2" onclick="clock2()">累计计数</button><button onclick="clears()">清除累计</button><a href="http://www.baidu.com">跳转</a><hr><script>//prompt()function clock(){var time1 = new Date();document.getElementById('time1').value = time1;}var i = setInterval(clock,1000)function test(){clearInterval(i)}var num = 0;function clock2(){num++;document.getElementById("time2").value = num;j = setTimeout(clock2,1000)}//var j = setTimeout(clock2,3000)function clears(){clearInterval(j)}var his = window.history;//.length本页面有多少网页访问document.write(his.length)document.write(his)console.log(his.forward())//go()返回第几个页面console.log(his.go(1));document.write('<br>')var b = navigator.appName;var b_version = navigator.appVersion;document.write(b);document.write('<br>')document.write(b_version)document.write('<br>')document.write(navigator.platform)</script></body></html>
0 0
- setInterval、history和navigator
- window.history/navigator和消息框的使用
- JS history对象和screen对象以及Navigator对象
- javascript 中history screen navigator
- Windows,Document,Location,History,Navigator
- javascript学习六~BOM和DOM简介,window,screen,navigator,location,history,节点增删改查
- Professional JS(8.1.5导航和打开窗口/location/navigator/screen/history对象/Summary)
- window对象中的location、screen、navigator、history
- BOM:window,location,navigator,screen,history
- 浏览器对象(Window、History、Location、Navigator、Screen)
- Js BOM 3 setTimeout/setInterval/history/loaction
- 设置setInterval和清除setInterval
- 34-JavaScript-DOM-History-Location-Navigator-Screen-Event
- javascript浏览器对象(window/计时器/History/location/navigator/screen/document)
- DOM(一)-05-(BOM&Navigator对象&History对象)
- 浏览器对象模型BOM-window,history,location,screen,navigator
- JavaScript Window History与Window Navigator与JavaScript 消息框
- BOM screen history location navigator 延时函数 open frames
- MyEclipse开发MyBatis入门程序
- Gradle多渠道打包[umeng]
- 7种形式的Android Dialog使用举例
- Android Studio 集成阿里百川SDK
- html中重置input标签中的数据的方法,类似于reset
- setInterval、history和navigator
- GIT 01 -log diff checkout 远程仓库与分支学习
- nrf52-添加定时任务
- hibernate批量处理大数据
- 知识点遗漏总结
- 通用ListAdapter
- 利用 filter 机制 给 静态资源 url 加上时间戳,来防止js和css文件的缓存,利于开发调试
- block , delegate
- const成员函数和mutable