// Wait for the page to load
document.addEventListener('DOMContentLoaded', function() {
// Get the header element
const header = document.querySelector('h1');
// Add a simple click event
header.addEventListener('click', function() {
alert('Welcome to my website!');
});
// Change text color on hover
header.addEventListener('mouseover', function() {
this.style.color = '#007bff';
});
header.addEventListener('mouseout', function() {
this.style.color = '';
});
});