Skip to content

Commit 25c55a4

Browse files
Merge pull request mdn#20 from qdirks/qdirks-patch-1
changed btn.onmouseout to btn.onclick
2 parents 2983284 + b273659 commit 25c55a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/building-blocks/events/random-color-eventhandlerproperty.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
document.body.style.backgroundColor = rndCol;
2424
}
2525

26-
btn.onmouseout = bgChange;
26+
btn.onclick = bgChange;
2727
</script>
2828
</body>
2929
</html>

0 commit comments

Comments
 (0)