js how do i use onload in function code example Example: on load javascript window.onload = (event) => { console.log('page is fully loaded'); };