Chapter 6 Review Questions Flashcards
The _______ is the browser’s internal representation of your web page.
Document Object Model
The ___________ method grabs an element from the DOM using its id.
document.getElementById
The _______ property holds the text content, as well as all nested HTML content, of an element.
innerHTML
You can get the value of an element’s attributes using the ________ method.
.getAttribute
You can set the value of an element’s attributes using the _______ method.
.setAttribute
You can use the window object’s ________ property to set an _______ function for the load event.
onload, event handler
What four things can you do to elements using a DOM?
Get elements,
create and add elements,
remove elements,
traverse the elements