October 2006
Beginner to intermediate
352 pages
9h 33m
English
List three ways you can attach an event-handler function to a specific event.
Given an onclick event
handler on the document object, how can you find the screen location
for the click?
Using the DOM Level 2 event system, how would you stop an event from bubbling to other elements?
Convert the following DOM Level 0 event handler to a cross-browser DOM Level 2 approach:
<body onload="functionCall( );">
Write JavaScript to capture the keydown event on the document and print
out the key pressed using a document.writeln function call.
Answers are provided in the appendix.
Read now
Unlock full access