01.4.23 Javascript DOM Learning

Source: Internet
Author: User

Dom defines a set of standard objects unrelated to browsers and programming languages to operate HTML and XML documents.

DOM: Level 3: 1. Supported by netscape2, 2. Supported by netscape4... 4.5, 3. Supported by w3cdom, and supported by Internet Explorer

Dom documentation results

<HTML>->

Document Object Access Method: Document: access HTML object (node), that is, object attributes, Method

Sub-objects of window: nvaigator, farmes, history, location, document, open, event, status, screen ........

Document model: Anchors [], applets [], Forms [], embeds [], Links [], images [], selections []

<Fieldset> used to group various elements displayed on the screen

#######################################

######## Obtain operations on elements in a form

Document. Form. element name. element attribute. For example, if pome is the name of textarea document. Form [0]. pone. value, the value in textarea is obtained.

##################

1. hidden object

Two attributes: Name and Value

Stores a global variable in JavaScript.

Note: hidden has no methods and events

2. Buttons

Three: Submit submission, button normal, reset Reset

Here, the submit and reset buttons can be displayed in the form.

 

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.