how to call window load get called in javascript code example Example: js document onload //use window.onload=()=>{};