Exam 5: Working With the Document Object Model Dom and Dhtml

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A set of connected nodes that are not part of a document is known as a(n)____.

(Multiple Choice)
4.8/5
(32)

The ____________________ object represents a web browser window.

(Short Answer)
4.8/5
(41)

Which method returns all h1 elements in a document?

(Multiple Choice)
4.8/5
(38)

The first h2 element in a web page is created with the following tag pair: <h2 id="local" class="section"></h2> . Provide three different examples of code to reference this element using three different methods.

(Essay)
4.7/5
(34)

Which results in a node that exists independently of the DOM tree?

(Multiple Choice)
4.8/5
(30)

Which is the correct way to reference the href attribute of the element with the id value homeLink ?

(Multiple Choice)
4.8/5
(38)

What is the difference between the content accessed by the textContent and innerHTML properties?

(Essay)
4.9/5
(31)

Each item in the DOM tree is known as a(n)____________________ .

(Short Answer)
4.9/5
(38)

The objects in the BOM for any given web page depend on the contents of the page.

(True/False)
4.8/5
(39)

The ____ method is used to cancel a setTimeout()method before its code executes.

(Multiple Choice)
4.9/5
(31)

Can you use JavaScript access URLs contained in the History object? If yes, provide code to do so. If no, why not?

(Essay)
4.7/5
(35)

The top-level object in the browser object model is the Window object, which represents a web browser window.

(True/False)
4.7/5
(36)

For security reasons, you should use the ____________________ property when possible instead of the innerHTML property.

(Short Answer)
4.7/5
(35)

Describe the differences between the  setTimeout() and setInterval()methods, and specify the method you use to cancel each.

(Essay)
4.8/5
(37)

In order to make a window the active window, you use the ____ method of the Window object.

(Multiple Choice)
4.8/5
(39)

The ____ method is used to clear a setInterval()method call.

(Multiple Choice)
4.8/5
(33)

The ____ object allows you to change to a new web page from within JavaScript code.

(Multiple Choice)
4.7/5
(39)

Which method does NOT return a node list or HTML collection?

(Multiple Choice)
4.9/5
(24)

Which method returns all   elements in a document that match the selector p figure img ?

(Multiple Choice)
4.9/5
(33)

The Document object branch of the browser object model is represented by its own object model called the ______________________________.

(Short Answer)
4.7/5
(44)
Showing 21 - 40 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)