window.addEventListener('load', (event) => { console.log('The page has fully loaded'); alert('The page has fully loaded'); });