javascript windows onload add html to body code example Example: on load javascript window.onload = (event) => { console.log('page is fully loaded'); };