Skip to content

Commit

Permalink
Create hoverOverButtons.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Law-Dawg360 authored Nov 20, 2024
1 parent 2220910 commit a7ff7d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Testing/HTML/hoverOverButtons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const button = document.querySelector('.defualtButtonsWithStyling');

defualtButtonsWithStyling.addEventListener('mouseover', () => {
.defualtButtonsWithStyling.textContent = button.title;
});

defualtButtonsWithStyling.addEventListener('mouseout', () => {
.defualtButtonsWithStyling.textContent = 'Hover Me';
});

0 comments on commit a7ff7d8

Please sign in to comment.