Js html dom

Source: Internet
Author: User
Js html dom
W3pop.com/2006-09-22

In addition to the built-in Javascript objects, you can also access and manipulate all of the html dom objects with JavaScript.
In addition to built-in JS objects, you can also access and operate all html dom objects through Js.

The HTML dom

The HTML Dom is a W3C standard and it is an abbreviation for the Document Object Model for HTML.
HTML Dom is a W3C standard. It is short for Document Object Model.

The HTML Dom defines a standard set of objects for HTML, and a standard way to access and manipulate HTML documents.
HTML Dom defines a set of standard HTML objects and uses standard methods to access and operate HTML documents.

All HTML elements, along with their containing text and attributes, can be accessed through the Dom. The contents can be modified or deleted, and new elements can be created.
Dom allows you to access all HTML elements and their text and attributes. Content can be modified and deleted, and new elements can be created.

The HTML Dom is platform and language independent. It can be used by any programming language like Java, JavaScript, and VBScript.
HTML Dom is an independent platform and language. You can use anyProgramLanguage, such as Java, JS, and vbs

Follow the links below to learn more about how to access and manipulate each DOM object with javascript:
Follow the connection below to learn more about accessing and operating each DOM object using JS
------ The following content is the DOM tutorial --------

Object Description
Anchor Represents an HTML a element (a hyperlink)
Represents the element of HTML (Hyperlink)
Applet Represents an HTML applet element. The applet element is used to place executable content on a page
Represents the HTML applet element. the applet element can be used to place executable content on the page.
Area Represents an area of an image-map. An Image-map is an image with clickable regions
Represents the image ing area. Images with clickable images can be called image ing
Base Represents an HTML base element
Represents the HTML base element
Basefont Represents an HTML basefont Element
HTML basefont Element
Body Represents the body of the document (the html body)
Body of a document)
Button Represents a push button on an HTML form. For each instance of an HTML <input type = "button"> tag on an HTML form, a button object is created
Button on the HTML form. As long as the <input type = "button"> tag appears in the HTML form, a button object is created
Checkbox Represents a checkbox on an HTML form. For each instance of an HTML <input type = "checkbox"> tag on an HTML form, a checkbox object is created
Check box in HTML form. As long as the <input type = "checkbox"> tag appears in the HTML form, a checkbox object is created.
Document Used to access all elements in a page
Used to access all elements on the page
Event Represents the state of an event, such as the element in which the event occurred, the State of the keyboard keys, the location of the mouse, and the state of the mouse buttons
Event status. For example, if an event of an element occurs, the status of the keyboard buttons, the location of the mouse, and the status of the mouse buttons
Fileupload For each instance of an HTML <input type = "file"> tag on a form, a fileupload object is created
When the HTML form contains <input type = "file">, the fileupload object is created.
Form Forms are used to prompt users for input. represents an HTML form Element
A form can be used to input and submit user information. Can represent the form element in HTML
Frame Represents an HTML Frame
Representing the framework in HTML
Frameset Represents an HTML frameset
HTML framework set
Hidden Represents a hidden field on an HTML form. For each instance of an HTML <input type = "hidden"> tag on a form, a hidden object is created
Hidden area in HTML. Every time the <input type = "hidden"> tag appears in an HTML form, the hidden object is created.
History A predefined object which can be accessed through the history property of the window object. This object consists of an array of URLs. These URLs are all the URLs the user has visited within a browser window
The pre-determined object accessed through the history attribute of the window object. This object is composed of a group of URLs. These URLs are the URLs that all users have accessed in the browser.
IFRAME Represents an HTML inline-Frame
Inline framework in HTML
Image Represents an html img element
IMG element of HTML
Link Represents an HTML link element. The link element can only be used within the Link element of HTML. You can only use the link element in the
Location Contains information about the current URL
Information containing the current URL
Meta Represents an HTML meta Element
Meta element of HTML
Navigator Contains information about the client browser
Contains client information
Option Represents an option in a selection list on an HTML form. For each instance of an HTML <option> tag in a selection list on a form, an option object is created
Select an item in the HTML form. When the <option> tag appears in an HTML form, the option object is created.
Password Represents a password field on an HTML form. For each instance of an HTML <input type = "password"> tag on a form, a password object is created
Radio Represents radio buttons on an HTML form. For each instance of an HTML <input type = "radio"> tag on a form, a radio object is created
Reset Represents a reset button on an HTML form. For each instance of an HTML <input type = "reset"> tag on a form, a Reset object is created
Screen Automatically created by the Javascript runtime engine and it contains information about the client's display screen
Select Represents a selection list on an HTML form. For each instance of an HTML <SELECT> tag on a form, a select object is created
Style Represents an individual style statement. This object can be accessed from the document or from the elements to which that style is applied
Submit Represents a submit button on an HTML form. For each instance of an HTML <input type = "Submit"> tag on a form, a submit object is created
Table Represents an HTML table element
Tabledata Represents an html td Element
Tableheader Represents an HTML th Element
Tablerow Represents an HTML tr Element
Text Represents a text field on an HTML form. For each instance of an HTML <input type = "text"> tag on a form, a text object is created
Textarea Represents an HTML textarea Element
window corresponds to the browser window. A Window object is created automatically with every instance of a or tag

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.