Filters
Question type

Study Flashcards

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)

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

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)

Correct Answer

verifed

verified

D

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

Correct Answer

verifed

verified

Event ________ fires whenever a mouse cursor moves into an element.


A) mousedrag
B) mouseover
C) mouseout
D) all of these

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

A

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.

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

B

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Showing 1 - 10 of 10

Related Exams

Show Answer