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