Answers for "how to apply hover through inline css"

CSS
2

how to apply hover through inline css

document.getElementById("mydiv").onmouseover= function(e){this.className += ' my-special-class'; };
document.getElementById("mydiv").onmouseleave= function(e){this.className = this.className.replace('my-special-class',''); };
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language