浅谈navigator对象:
注意:不是所有浏览器都支持
.cookieEnabled 判断是否启用了cookie 在客户端硬盘持久保存用户私密数据的小文件
.plugins 浏览器安装的所有插件信息
appName返回浏览器的名称;
appVersion 返回浏览器的平台和版本信息;
Screen对象(屏幕)
注意:不是所有浏览器都支持
介绍几个常用的:
1.【availHeight】屏幕的像素宽度减去系统部件宽度之后的值(只读),代表屏幕可用宽度,单位为像素
2.【width】屏幕的像素宽度
3.【height】 屏幕的像素高度
screenX和screenY会返回鼠标对于屏幕的x和y坐标;