当前位置:网站首页>BOM part attributes and understanding
BOM part attributes and understanding
2022-07-28 10:54:00 【Much less】
BOM Some attributes and understanding
BOM Call it the browser object model . It is mainly about the way we interact with browsers .
By IE3.0 and Netscape Navigator3.0( netscape ) Provides a new feature , It is mainly used to pass through JS This scripting language to operate the browser , It is convenient for us to access the browser window .
BOM Some objects contained in :
Window object
Navigator object
Screen object
History object
Location object
window( window ), Table 4 browser window , Top objects , All global variables belong to window
window.name The name of the current browser ( Can store several megabytes of content )
window.closed Closed window
window.opener Open window object
notes :
window.opener In the current window is the current window object , In a child window, it refers to the parent window of the child window
You can use window.opener.document.write( ) Wait for the operation
window.open( ) How to open a new window
notes :
For security reasons , The child window and the parent window can transmit data , If there is no need to communicate between the new window and the parent window , take opener Set to null.
How to write it :
var a=window.open();
a.opener=null;
attribute :
window.screenX,window.screenY
Current browser The upper left corner of the window Compared with when Front screen Horizontal distance and vertical distance of the upper left corner , The unit is Pixels , And the property is read-only
window.innerWidth,window.innerHeight
The current page is in the current window The visible part Width and height . That is commonly known as viewport "viewport".
The visible part :
But the reality part . If the window is half covered , The other half is the visible part , It's only half the height .
window.outerWidth,window.outerHeight
The width and height of the browser window
window.scrollX,window.scrollY
Horizontal distance and vertical distance of page scrolling
边栏推荐
- 盘点:144个免费学习网站,全网最全资源合集
- Excel word simple skills sorting (continuous update ~)
- c语言进阶篇:指针(一)
- Learn how to do e-commerce data analysis (with operation analysis index framework)
- 零代码 | 轻松实现数据仓库建模,搭建BI看板
- nodejs:检测并安装npm模块,如果已安装则跳过
- FHWY工作日进度表
- 1. Sum of two numbers
- 10_ UE4 advanced_ Add fall and cast actions
- Batch Normlization
猜你喜欢

蓝桥杯嵌入式-HAL库-LCD

Characteristics and installation of non relational database mongodb

3. MapReduce explanation and source code analysis

I don't know how lucky the boy who randomly typed logs is. There must be a lot of overtime

非关系型数据库MongoDB的特点及安装

The 10th Landbridge cup embedded electronic provincial competition

GKBillowNoiseSource

Redis-day01-常识补充及redis介绍

GKCylindersNoiseSource

蓝桥杯嵌入式-HAL库-SYSTICK
随机推荐
GKLinearCongruentialRandomSource
Andorid development III (intent)
GKNoise
Blue Bridge Cup embedded Hal library USART_ RX
Pyqt5 rapid development and practice 4.13 menu bar, toolbar and status bar and 4.14 qprinter
02.1.2. logic type bool
An example of SQL trace in MySQL
Redis-day01-常识补充及redis介绍
GKRandom
Development environment configuration of nodemcu
这里有一份超实用Excel快捷键合集(常用+八大类汇总)
非关系型数据库MongoDB的特点及安装
Pyqt5 rapid development and practice 4.11 drag and clipboard
Learn how to do e-commerce data analysis (with operation analysis index framework)
Blue Bridge Cup embedded Hal library USART_ TX
FHWY工作日进度表
7. MapReduce custom sorting implementation
Using k-means clustering to classify tariff models of different industries
Go json. Decoder Considered Harmful
Operation log of dbeaver