Getting the DOM object of JavaScript

Source: Internet
Author: User

Before we talked about the JavaScript DOM object to get the two articles, this article is the third of this series of articles, click to review the two articles to better understand this article.
Access to the DOM object of JavaScript (i);

Getting the DOM object of JavaScript (ii)

Next, start to tell the story. In the documentation, we can also get DOM objects through different phenomena and features.

8, Document.activeelement

This is a property that returns the element that currently gets the focus


Effect

9, Document.anchors

Returns a reference to all anchor objects in the document, that is, gets all the hyperlink objects of the current page (note, the number of anchor points)



Effect


10, Document.body

Returns the BODY element of the current document

Effect



Let's talk about this today, next time we go on with JavaScript related technology, please pay more attention to Shanghai Shang School java8733

Getting the DOM object of JavaScript

Related Article

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.