Section 1

Preview this deck

13.10 Event bubbling is _______. a) the process of child elements passing events to their parent elements b) the process of sorting elements which contain events that have fired c) the process of sorting events which have fired d) the process of parent elements passing events to their children

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (10)

Section 1

(10 cards)

13.10 Event bubbling is _______. a) the process of child elements passing events to their parent elements b) the process of sorting elements which contain events that have fired c) the process of sorting events which have fired d) the process of parent elements passing events to their children

Front

a) the process of child elements passing events to their parent elements

Back

13.1 The ________ model of registering event handlers requires adding parentheses at the end of the function name and surrounding it in quotes. a) inline b) traditional c) div d) click

Front

a) inline

Back

13.9 Which if the following statements about the form's submit and reset events is false? a) By returning either true or false, the event handlers dictate whether the default action for the event is taken. b) Other default actions, such as following a hyperlink, can be prevented by returning false from a click event handler on the link. c) If an event handler returns false or does not return a value, the default action is taken once the event handler finishes executing. d) Both (b) and (c)

Front

c) If an event handler returns false or does not return a value, the default action is taken once the event handler finishes executing.

Back

13.7 The blur event is associated with ________. a) data transfer within the document b) a decrease in image resolution c) background effects d) an element losing focus

Front

d) an element losing focus

Back

13.5 Event ________ fires whenever a mouse cursor moves into an element. a) mousedrag b) mouseover c) mouseout d) all of these

Front

b) mouseover

Back

13.2 The ________ model of registering event handlers involves passing a function object to be invoked when the event fires. a) inline b) traditional c) div d) click

Front

b) traditional

Back

13.4 When the browser calls an event-handling function, it passes a(n) ________ to the function. a) load event b) window object c) event object d) None of the above.

Front

c) event object

Back

13.3 What does the following script do? <!-- var value = 0; function startTimer() { window.setInterval( "updateTime()", 1000 ); } function updateTime() { value++; pText.innerText = value; } a) It counts the number of seconds elapsed while loading the page. b) It counts the number of milliseconds elapsed while loading the page. c) It counts the number of seconds elapsed viewing the page. d) It counts the number of milliseconds elapsed while viewing the page.

Front

c) It counts the number of seconds elapsed viewing the page.

Back

13.6 The focus event fires when ________. a) an element is loaded from the document b) an image is loaded into the document c) an element is clicked or selected using the tab key d) an image is downloaded

Front

c) an element is clicked or selected using the tab key

Back

13.8 An anonymous function ________. a) has no identifier after the keyword function. b) is registered as an event handler at the same time it is created. c) Neither (a) nor (b) d) Both (a) and (b)

Front

d) Both (a) and (b)

Back