+ 2
Can i change color of any element(text) through event handler?
i want to change color of text on which i apply onmouseover event handler.
1 Réponse
+ 12
el.onmouseover = function(){
this.style.color = "red";
}
Demo 1: https://code.sololearn.com/WRBuwkn5UypT/?ref=app
Demo 2: https://code.sololearn.com/WzFopo7BN3kq/?ref=app
Demo 3: https://code.sololearn.com/WrvDGI0bEPt6/?ref=app