Knowledge points of Dom and BOM

1. Find elements: (1). There are 4 kinds of element objects that can be obtained directly without searching: document.documentElement - document.head - document.body - document.forms[i] - (2). If you have obtained an element object, when you find the element object around you, you can use the search by the relationship between nodes: 2 ...

Posted by shadypalm88 on Mon, 07 Mar 2022 21:02:55 +0100

Understanding BOM and DOM from browser architecture

Browser architectureJavaScript runs in the browser, BOM is the bridge between JavaScript code and browser, and DOM is used to operate various tag elements.BOM includes window, history, location, documentDOM includes Document (whole Document), Element (label Element), CharacterData (character data) and Attr (attribute), which can be further divi ...

Posted by lorddraco98 on Sun, 30 Jan 2022 18:00:21 +0100

DOM and BOM operations

DOM and Bom DOMBOMDocument object modelBrowser object modelTreat the document as a * * * object***Treat the browser as a * * * object***The top-level object of DOM is DocumentThe top-level object of BOM is windowDOM is mainly used to manipulate page elementsBOM s are objects that interact with browser windowsDOM is the W3C Standard Specificati ...

Posted by jakep on Wed, 22 Dec 2021 14:55:24 +0100