Search Header Logo

javascript dom

Authored by Ashish Bajpai

Computers

Professional Development

Used 51+ times

javascript dom
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods returns an array of all the elements in a Webpage, with a specified class name?

getElementsByName

getElementsByTagName

getElementsByClassName

getElementByClassName

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method allows you to delete entire HTML attributes from an element?

getElementById

setAttribute

innerHTML

removeAttribute

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method retrieves the corresponding value of an attribute?

getAttribute

setAttribute

removeAttribute

innerHTML

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods will access all occurrences in the page of an element with a specified name value and return them in an array?

getElementsByTagName

getElementById

innerHTML

getElementsByName

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods lets you access all occurrences of an HTML tag in a Webpage?

getElementByID

getElementsByName

getElementsByTagName

innerHTML

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method dynamically modifies the value of an element's attribute?

setAttribute

getAttribute

removeAttribute

getElementById

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property of the form object returns the number of elements in the form?

target

encoding

elements

length

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?