Chapter 6 Review Questions Flashcards

1
Q

The _______ is the browser’s internal representation of your web page.

A

Document Object Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The ___________ method grabs an element from the DOM using its id.

A

document.getElementById

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The _______ property holds the text content, as well as all nested HTML content, of an element.

A

innerHTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

You can get the value of an element’s attributes using the ________ method.

A

.getAttribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

You can set the value of an element’s attributes using the _______ method.

A

.setAttribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You can use the window object’s ________ property to set an _______ function for the load event.

A

onload, event handler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What four things can you do to elements using a DOM?

A

Get elements,
create and add elements,
remove elements,
traverse the elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly