Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Як в JS змінити фоновий колір елемента з id "box" на червоний при наведенні миші?
onMouseOver("box", () => { background = "red";});
document.getElementById("box").hover(() => { this.style.color = "red";});
box = get("box");hover(box, () => { color = red;});
const box = document.getElementById("box");box.addEventListener("mouseover", function() { box.style.backgroundColor = "red";});
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!