Skip to content

Commit

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

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

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

0 comments on commit 0b6b133

Please sign in to comment.