当前位置:网站首页>JS-DOM--全局DOM对象document-history-location-navigator-screen-window
JS-DOM--全局DOM对象document-history-location-navigator-screen-window
2022-08-09 04:33:00 【(-^_^-)】
全局DOM对象:
document---当前的web页面
history--用户以前访问过的列表页面
location--当前web页面的url
navigator--用户正在使用的web浏览器
screen--浏览器和页面占用的屏幕区域
window--浏览器窗口
window-(浏览器窗口)-对象的方法
弹出框--alert,confirm,prompt--给用户提示信息--
计时器--setInterval settTimeout clearinterval cleartimeout
弹出新的浏览器窗口-open close
发送web页面到打印机--print()
将窗口设置成活动窗口或非活动窗口blur focus
移动浏览器窗口到屏幕指定位置--moveby moveto
改变浏览器窗口--resize..
将页面上下滚动到特定点--scrollby
document---指当前的web页面-对象的属性
body--页面实体的dom对象
cokies--临时信息
referrer--在此之前用户正在查看的文档的url
title--网页标题
url--web完整的url
navigator--用户正在使用的web浏览器-对象的属性
appname-浏览器名称
appversion--浏览器版本号
cookieenabled--如果浏览器支持cookie则为真
language--用户的语言
platform--用户的操作系统
useragent--用户的浏览器、操作系统和版本的长用户代理字符串
history--用户以前访问过的列表页面--对象的方法和属性
back().forward()-将浏览器重定向到其上一页或下一页
go(index)--将浏览器重定向到历史记录中的特定页
length--属性--历史记录中的url数
screen--浏览器和页面占用的屏幕区域--对象的属性
availHeight avail(去除工具条)Width--显示屏的宽度/高度 不包含任务栏
colorDepth--用户监视器上可用的颜色位深度
height,width--显示屏的宽度高度
location--当前web页面的url--对象的属性
hash-锚点
host-主机名和端口号
hostname-主机/域的名称
herf-完整的url
pathname-目录/文件名
port-端口号
protocol--协议后面跟:
search--查询字符串
边栏推荐
- 使用ceph-deploycep集群部署,并用3个磁盘作为专用osd
- 关于sys.path.append(‘..‘)失效
- OKR management process, how to implement effective dialogue, using the CFR feedback and recognition?
- 2022年熔化焊接与热切割考试模拟100题及在线模拟考试
- 查询某时间段获得的积分总积分的大小进行排序
- 数量遗传学遗传力计算2:半同胞和全同胞
- Talking about the process and how to create it
- Alibaba Cloud Tianchi Contest Question (Machine Learning) - Prediction of Industrial Steam Volume (Complete Code)
- LeetCode - remove consecutive nodes with a sum of zero from a linked list
- 松柏集(浮窗思)
猜你喜欢
JVM垃圾回收机制简介
2022高处安装、维护、拆除考试练习题及模拟考试
[Server data recovery] A case of data recovery when the Ext4 file system cannot be mounted and an error is reported after fsck
【精品向】你真的会写测试用例么?全网超大型测试用例攻略
TASSEL软件导入plink格式文件报错
2022高压电工考试试题及答案
Device Reliability vs. Temperature
2022 High-altitude installation, maintenance, and demolition exam practice questions and mock exams
杰理之采用mix out eq 没有作用【篇】
Cluster deployment using ceph-deploycep with 3 disks as dedicated osd
随机推荐
2022R1快开门式压力容器操作考试模拟100题及在线模拟考试
自动化测试-图片中添加文字注释,添加到allure测试报告中
I.MX6U-ALPHA开发板(高精度定时器)
【精品向】你真的会写测试用例么?全网超大型测试用例攻略
单根k线图知识别以为自己都懂了
松柏集(江风起)
遗传力缺失的案例
岭回归和LASSO回归
ceph create pool, map, delete exercises
JVM学习——1——虚拟机基础概念
杰理之SD卡切回蓝牙没有作用【篇】
simple math formula calculation
简单的数学公式计算
杰理之智能充电仓低电发码关机 触摸不开机【篇】
单元测试覆盖率怎么算?
月报总结|Moonbeam 7月份大事一览
MySql.Data.MySqlClient.DBNull
Disappearance of heritability - wiki
数量遗传学遗传力计算1:亲子回归方法
MKNetworkKit replacing domain name wrong solution