Use of the Object System in the JavaScript tutorial

Source: Internet
Author: User
The browser's internal object system enables interaction with HTML documents. It is used to organize and package related elements for program designers, so as to reduce the work of programmers and improve the ability to design web pages. The browser's internal object system enables interaction with HTML documents. It is used to organize and package related elements for program designers, so as to reduce the work of programmers and improve the ability to design Web pages.

Browser object hierarchy and its main functions

In addition to the document object mentioned above, the Navigator browser also provides Window objects, historical and Location objects.

Browser object (Navigator)

Provide information about browsers

Window object (Windows)

The Window object is at the top of the object hierarchy. It provides methods and properties for processing the Navigator Window.

Location)

The Location object provides methods and attributes to work with the currently opened URL. It is a static object.

Historical object (History)

The History Object provides information related to the History list.

Document Object)

A document object contains objects that work with the document elements. It encapsulates these elements for programmers to use.


Functions and functions of document objects

1. Three main objects in document

In the document, there are three most important objects: links, anchor, and form: anchor and anchor. It contains all the anchors information in the document. A link links object is a link to a hypertext or hypermedia element as a specific URL. Form object, which contains Object Storage information in multiple formats. It can be used to write programs in JavaScript scripts for text input and dynamically change document behavior.

2. attribute in the Document Object

The attribute in the document object is used to control the color format and the document title, the URL of the original file of the document, and the last update date of the document when the Href identifier is referenced.

The above is the content used by the object system of the JavaScript tutorial. For more information, see PHP Chinese website (www.php1.cn )!

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.