This week, learn the following categories:
Browser object:
Window
Represents an open window in a browser.
If the document contains a frame (frame or iframe label), the browser creates a Window object for the HTML document and creates an additional window object for each frame.
Navigator
Contains information about the browser.
Screen
Contains information about the client display screen.
History
Contains URLs that are accessed by the user (in a browser window).
is part of the Window object and can be accessed through the Window.history property.
Location
Contains information about the current URL.
is a part of the Window object that can be accessed through the Window.location property.
HTML DOM object:
Document
Each HTML document that is loaded into the browser becomes the document object.
The Document object allows us to access all elements of an HTML page from within a script. 、
Element
In the HTML DOM, the element object represents an HTML element.
The element object can have child nodes of the type elements node, the text node, and the annotation node.
The NodeList object represents a list of nodes, such as a collection of child nodes of an HTML element.
Elements can also have properties.
Attr
In the HTML DOM, theAttr object represents an HTML attribute.
HTML attributes always belong to HTML elements.
Event
Represents the state of an event, such as the element in which the event occurred, the state of the keyboard key, the position of the mouse, and the state of the mouse button.
Events are often used in conjunction with functions, and functions are not executed until the event occurs!
Learn JS's journey-second week 2