Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

uestion 1 (10 points) The ____________________ method of a Document node retrieves an array of all the elements with the specified tag name. Question 1

uestion 1 (10 points)

The ____________________ method of a Document node retrieves an array of all the elements with the specified tag name.

Question 1 options:

Question 2 (10 points)

The ______________________ method runs a function once after a delay.

Question 2 options:

Question 3 (10 points)

When you use JavaScript to make a change to the Document Object Model for a web page, the page is immediately changed in the __________________________.

Question 3 options:

Question 4 (10 points)

When creating a timer, the delay is specified in _______________________.

Question 4 options:

Question 5 (10 points)

Which of the following statements runs the function thats stored in the onTimer variable every 3 seconds?

Question 5 options:

a)

setTimeout(onTimer, 3000);

b)

setInterval(onTimer, 3000);

c)

setInterval(onTimer, 3);

d)

setTimeout(onTimer, 3);

Question 6 (10 points)

The childNodes property of a DOM object returns a/an ______________________ of the child nodes for that object.

Question 6 options:

Question 7 (10 points)

To cancel the default action of clicking on an element, you need to use a property or method of the ____________________ object thats passed to the event handler.

Question 7 options:

Question 8 (10 points)

What does the this keyword refer to in the event handler that follows if the event handler is attached to the click event of all the h2 elements within an element with faqs as its id? var toggle = function() { var h2 = this; ... };

Question 8 options:

a)

the element with faqs as its id

b)

the h2 element that was clicked

c)

the document node

d)

the id attribute of the h2 element that was clicked

Question 9 (10 points)

The nodeValue property of a DOM object returns the ___________________ thats stored in a Text or Attribute node.

Question 9 options:

Question 10 (10 points)

What does the code that follows do? var image = new Image(); image.src = "slide1.jpg";

Question 10 options:

a)

Preloads slide1.jpg.

b)

Replaces the image displayed by the image node with the slide1.jpg image.

c)

Clears slide1.jpg from the browsers cache.

d)

Displays slide1.jpg as a new image in the browser.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Students also viewed these Databases questions

Question

differentiate the function ( x + 1 ) / ( x ^ 3 + x - 6 )

Answered: 1 week ago