execute js function after page load code example Example: on load javascript window.onload = (event) => { console.log('page is fully loaded'); };