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 )!