window对象–5

  • 845
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>新建网页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
<script>
/*
window.alert('haha');
window.confirm('你确定要关闭吗?');
console.log(window.navigator.cookieEnabled);   //true
*/
        console.log(window.history);
       /* console.log(window.screen.width);
        console.log(window.screen.height);
        alert(window.document);  //dom大对象
*/
        </script>
</head>
    <body>
        <input type = "button" value = "前进" onclick = "javascript.window.history.forward();"/>
        <input type = "button" value = "后退" onclick = "javascript.window.history.back();"/>
        
        
    </body>
</html>

 

weinxin
我的微信
这是我的微信扫一扫
开拓者博主
  • 本文由 发表于 2016年6月3日22:13:16
  • 转载请务必保留本文链接:https://www.150643.com/45.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: