Saved Bookmarks
| 1. |
write a Java script function that grabs the style of a element and change it to some other style in the java script onmouseover and return to its initial style onmouseover event |
|
Answer» Answer: const element = document.queryselector('p'); element.addEventListener('mouseover', function() { element.style.color = 'White'; }); element.addEventListener('mouseleave', function() { element.style.color = 'Black'; }); |
|