Home > Web Front-end > JS Tutorial > body text

Introduction to BOM of js

小云云
Release: 2018-03-22 17:31:29
Original
2778 people have browsed it

BOM (Browser Object Model), browser object model, abstracts the browser we use into an object model. For example, when we open a browser, the following page will be displayed. By providing browser object model objects through js, we can Simulate browser functionality. For example, we can use the location object to simulate the process of entering an address in the browser address bar and hitting Enter. For example, the forward and back buttons in a browser can be simulated using a history object. Of course, in addition to this, BOM objects not only have these functions, let us learn about them.

BOM object of js

1) Screen object. The Screen object stores information about displaying the browser screen.

2) Window object. The Window object represents a browser window or a frame.

3) The Navigator object contains attributes that describe the browser being used

4) The History object is actually used to save browser history information.

5) Location object. The Location object is a part of the Window object and can be accessed through the window.location property.

Related recommendations:

js knowledge about BOM operations

JavaScript BOM

Common Bom objects in JS

The above is the detailed content of Introduction to BOM of js. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template