点击按钮有前进后退效果
<!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>
如对本文有疑问, 点击进行留言回复!!
【JavaScript笔记(一)】万丈高楼平地起 - 基本概念篇
轻松解决 org.apache.taglibs.standard.tlv.JstlCoreTLV 困惑
vert实践五——Json?Protocol Buffer?FlatBuffers?
[基于tensorflow的人脸检测] 基于神经网络的人脸检测8——验证训练好的神经网络
网友评论