Level 99 Level 101
Level 100

DOM Animation

5 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Animation Code
animations are done by programming gradual changes in an element's style.
Reacting to Events
<button onclick="displayDate()"></button> Try it Yourself »
Assign an onclick event to a button element
element.addEventListener(event, function, useCapture);
method attaches an event handler to the specified element
element.addEventListener("click", function(){ alert("Hello World!"); }); Try it yourself »
Add an Event Handler to an Element