HTML and CSS Reference
Which of the following isn't a supported way to add an event handler to a DOM
Which of the following isn't an attribute of an anonymous function?
A. Anonymous functions can't be called by any other code.
B. Anonymous functions have a clearly defined name.
Anonymous functions can be passed as parameters.
Anonymous functions can't be assigned to a DOM element declaratively.
Which code line would successfully cancel an event?
A. window.event.returnValue = false;
B. return false;
Which event occurs when a DOM element receives the cursor?
Which option provides the correct sequence of events in a drag-and-drop operation?
A. dragstart , drag , dragenter , drop
B. dragstart , drag , dragenter , dragstop
C. drag , dragstart , drop , dragenter
D. drag , dragstart , dragenter , dragstop