BOM 之 screen history
2024-10-17 21:42:35
/*
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();
最新文章
- 用于灰度变换的一些实用的M函数
- iis WebSocket 搭建环境及配置
- Spark学习笔记(一)
- Python多进程(multiprocessing)
- Linux下最快速共享目录的方法
- CSS一些设置用法
- GNU scientific library
- android定位方式
- MVC创建
- oracle与SqlServer连接串服务器地址
- linux C 文件操作之fscanf()
- Numpy
- Servlet_note
- 小测D
- Perl IO:简介和常用IO模块
- TXMLDocument 创建空值节点不要缩写
- 六、es6 map
- alpha冲刺7/10
- Spring Boot + Spring Cloud 实现权限管理系统 后端篇(二十三):配置中心(Config、Bus)
- MVC 中url-pattern配置为";/";和";/*";的区别
热门文章
- [LeetCode] 74. Search a 2D Matrix 解题思路
- poj 2503 字符串hash
- 3 weekend110的hadoop中的RPC框架实现机制 + hadoop中的RPC应用实例demo
- phpnow下mysqli加载不了的问题
- liunx shell数字相加
- JAVA命名、注释规范
- LINUX下解决netstat查看TIME_WAIT状态过多问题
- 使用PHPmailer发送邮件的详细代码
- [D3] 8. Margins
- Android开发之UI更新交互机制与实例解析