Knowee
Questions
Features
Study Tools

What is the return type of getElementsByClassName() method?Chọn đáp án đúng:DOMDocumentNodeNodeList

Question

What is the return type of getElementsByClassName() method?Chọn đáp án đúng:DOMDocumentNodeNodeList

🧐 Not the exact question you are looking for?Go ask a question

Solution

The return type of the getElementsByClassName() method is NodeList.

Similar Questions

Which are properties of Element object?Chọn đáp án đúng:className and fontsize and stylestyle and fontstyle and className

What is the return type of element.style?Chọn đáp án đúng:StringCSSStyleDeclaration objectInlineStyle objectJSON

Select all the methods used to get following element in JavaScript?<div id="flex"></div>Chọn tất cả đáp án đúng:document.getElementsByClassName("div:flex")document.getElementById("flex")document.getElementsByName("#flex")document.getElementsByTagName("flex")document.querySelector("#flex")querySelectorAll(".flex")

Để lấy về một mảng các element có cùng thuộc tính name. Ta sử dụng phương thức getElementByTagName getElementsByName getElementByName getElementByClassName

Which property used to get or replace the content of an element?Chọn đáp án đúng:innerHtmlhtmlinnerHTMLHTML

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.