/*
    avaiHeight // 屏幕的像素高度减去系统部件高度之后的值
    var ah = screen.availHeight;
    alert(ah);

*/
    /* availWidth 屏幕的像素宽度减去系统部件宽度之后的值
    var aw = screen.availWidth;
    alert(aw);
    */

/*
    // height 屏幕的像素高度
    var h = screen.height;
    alert(h);
    */

// width 屏幕的像素宽度
    var w = screen.width;
    alert(w);

===============================

history 对象
保存着用户上网的历史记录。
go() 方法可以在用户的历史记录中任意跳转,可以向后也可以向前。

// 后退一页
history.go(-1);

// 前进一页
history.go(1);

// 前进两页
history.go(2);

也可以给一个字符串,跳转到历史中最近的URL,如果历史记录中没有

,则什么也不做
history.go("url");

// 模仿浏览器前进和后退
// 后退一页
history.back();

// 前进一页
history.forward();

最新文章

  1. 用于灰度变换的一些实用的M函数
  2. iis WebSocket 搭建环境及配置
  3. Spark学习笔记(一)
  4. Python多进程(multiprocessing)
  5. Linux下最快速共享目录的方法
  6. CSS一些设置用法
  7. GNU scientific library
  8. android定位方式
  9. MVC创建
  10. oracle与SqlServer连接串服务器地址
  11. linux C 文件操作之fscanf()
  12. Numpy
  13. Servlet_note
  14. 小测D
  15. Perl IO:简介和常用IO模块
  16. TXMLDocument 创建空值节点不要缩写
  17. 六、es6 map
  18. alpha冲刺7/10
  19. Spring Boot + Spring Cloud 实现权限管理系统 后端篇(二十三):配置中心(Config、Bus)
  20. MVC 中url-pattern配置为"/"和"/*"的区别

热门文章

  1. [LeetCode] 74. Search a 2D Matrix 解题思路
  2. poj 2503 字符串hash
  3. 3 weekend110的hadoop中的RPC框架实现机制 + hadoop中的RPC应用实例demo
  4. phpnow下mysqli加载不了的问题
  5. liunx shell数字相加
  6. JAVA命名、注释规范
  7. LINUX下解决netstat查看TIME_WAIT状态过多问题
  8. 使用PHPmailer发送邮件的详细代码
  9. [D3] 8. Margins
  10. Android开发之UI更新交互机制与实例解析