Skip to content

Commit bb96b7e

Browse files
button changes
1 parent 58add56 commit bb96b7e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dom-and-events/exercises/script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ function init () {
44
const paragraph = document.getElementById("statusReport");
55

66
// Put your code for the exercises here.
7-
87
}
98

9+
button.addEventListener('click', event => {
10+
paragraph.innerHTML = 'Houston! We have liftoff!';
11+
});
12+
13+
missionAbort.addEventListener("mouseout", function( event ) {
14+
event.target.style.backgroundColor = "";
15+
});
16+
1017
window.addEventListener("load", init);

0 commit comments

Comments
 (0)