7 lines
199 B
JavaScript
7 lines
199 B
JavaScript
const button = document.querySelector('button');
|
|
|
|
button.addEventListener('click', () => {
|
|
// Add functionality to the button click here (e.g., alert, change color)
|
|
alert('Button Clicked!');
|
|
});
|