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';

});

HOPE this helps - Have a great DAY!



Discussion

No Comment Found