How JavaScript supports W3CDOM templates-Basic Knowledge-js tutorial

Source: Internet
Author: User
This article describes how JavaScript supports W3CDOM templates. It can be used as a reference for compatibility of JS frontend programming, if you need this document, you can refer to the object model of this document to allow access to all the document content and modifications, as standardized by the World Wide Web Federation (W3C. Almost all modern browsers support this mode.

Most of the traditional DOM functions in W3C DOM specifications are added with new important functions. Apart from supporting other array attributes of forms [], images [] and document objects, it defines methods to enable scripts to access and manipulate any document element, not just dedicated component-like forms and images.
Document attributes are stored in W3C DOM:

This model supports all attributes provided by traditional DOM. In addition, here is the document attribute. You can use W3C DOM to access the list:

In W3C DOM:

This model supports all methods provided by traditional DOM. In addition, here is a list of methods supported by W3C DOM:

Example:

This is very easy to manipulate using W3C DOM document elements (access and settings. You can use any method similar to getElementById, getElementsByName, or getelementsbytagname.

The following is an example of accessing the document attributes using the W3C DOM method:

Document Title

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.