Learn JS's journey-second week 2

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.