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.
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
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!