JavaScript composition (three components)

Source: Internet
Author: User

JavaScript consists of three main parts:

1. The core of Ecmascript:javascript is simply a description that defines all the properties, methods, and objects of the scripting language.

Specifically, ECMAScript describes the following: syntax, type, statement, keyword, reserved word, operator, object

Each browser has its own implementation of the ECMAScript interface, which is then expanded to include both the DOM and the BOM.

2. DOM:

The DOM (Document Object model) is an application interface (API) for HTML and XML. The DOM will plan the entire page into a document composed of node hierarchies. Each part of an HTML or XML page is a derivative of a node.

The DOM creates a tree to represent the document, giving developers unprecedented control over the content and structure of the document. The DOM API makes it easy to delete, add, and replace nodes.

3. BOM

You can access and manipulate the browser window, using the BOM, the developer can move the window, change the text in the status bar, and perform other actions that are not directly related to the content of the page.

Because there is no relevant BOM standard, each browser has its own BOM implementation. There are some de facto criteria, such as having a Window object and a navigation object, but each browser can define its own properties and methods for those objects or other objects.

  • Window Object
  • Navigator Object
  • Screen Object
  • History Object
  • Location Object

JavaScript composition (three components)

Related Article

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.