当前位置:网站首页>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--查询字符串
边栏推荐
- Oracle 的开窗函数使用详解
- The influence law of genes for disease - read the paper
- 杰理之采用mix out eq 没有作用【篇】
- gopacket使用示例
- 必须指定GDAL API版本。提供一个路径使用GDAL_CONFIG gdal-config环境
- 2022年低压电工练习题及模拟考试
- 杰理之SD卡切回蓝牙没有作用【篇】
- Alibaba Cloud Tianchi Contest Question (Machine Learning) - Prediction of Industrial Steam Volume (Complete Code)
- 【每日一题】761. 特殊的二进制序列
- Alibaba Cloud Tianchi Contest Question (Machine Learning) - Repeat Purchase Prediction of Tmall Users (Complete Code)
猜你喜欢
随机推荐
MySQL: Implementation Principles of Submitted Read and Repeatable Read | MVCC (Multi-Version Concurrency Control) - Notes for Your Own Use
Improve the user experience and add a small detail to your modal popup
笔记本电脑重装系统后开机蓝屏要怎么办
2022年安全员-A证特种作业证考试题库及在线模拟考试
杰理之手机OTG问题【篇】
pytorch implementation of Poly1CrossEntropyLoss
Talking about the process and how to create it
钉钉与RStudio快捷方式冲突--钉钉快捷键设置
Oracle 的开窗函数使用详解
Ali YunTianChi competition problem (deep learning) - video enhancement (complete code)
人类微生物组和缺失遗传力--读论文
MySql.Data.MySqlClient.DBNull
337. 打家劫舍 III
简单的数学公式计算
使用Oracle SQL Developer管理Oracle Database Express Edition (XE)
Crosstalk and Protection
Understanding ML Cross Validation Fast
松柏集(江风起)
337. Robbery III
基于ABP和Magicodes实现Excel导出操作