[JavaScript] JavaScript to learn about JavaScript html dom objects

Source: Internet
Author: User

In addition to built-in JavaScript objects, you can also use JavaScript to access and process all html dom objects.

More JavaScript objects

Click the following link to obtain more information about the following objects, including their collections, attributes, methods, and events.

Object Description
Window Top-level objects in the Javascript level. Window object indicates the browser window. When the <body> or <frameset> label appears, the window object is automatically created.
Navigator Contains information about the client browser.
Screen Contains information about the client display.
History Contains the URL accessed by the browser window.
Location Contains information about the current URL.
HTML dom

HTML Dom is W3C standard (abbreviated as Document Object Model for HTML ).

HTML Dom defines a series of standard objects for HTML and standard methods for accessing and processing HTML documents.

With Dom, you can access all HTML elements, along with the text and attributes they contain. You can modify and delete the content and create new elements.

HTML Dom is independent of platform and programming language. It can be used by any programming languages such as Java, JavaScript, and VBScript.

Click the following link to learn more about how to use JavaScript to access and process DOM objects:

Object Description
Document Represents the entire HTML document, used to access all elements in the page.
Anchor Represents the <A> element.
Area Represents the <area> element in the image map.
Base Represents the <base> element.
Body Represents the <body> element in the image map.
Button Represents the <button> element.
Event Event status
Form Represents the <form> element
Frame Represents the <frame> element
Frameset Represents the <frameset> element
IFRAME Represents the <IFRAME> element
Image Represents Elements
Input button Button in HTML form
Input checkbox Indicates the selection box in the HTML form.
Input File Indicates fileupload in an HTML form.
Input hidden Represents a hidden field in an HTML form.
Input password Indicates the password field in the HTML form.
Input radio Represents a single sheet in an HTML form.
Input Reset Indicates the reset button in the HTML form.
Input submit The confirmation button in the HTML form.
Input text Indicates the text input field in an HTML form.
Link Represents <link> Elements
Meta Represents <meta> Elements
Object Represents an <Object> element
Option Represents the <option> element
Select Indicates the selection list in the HTML form.
Style Represents a separate style declaration.
Table Represents the <Table> element.
Tabledata Represents the <TD> element.
Tablerow Represents the <tr> element.
Textarea Represents the <textarea> element.

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.