function to track when html loads code example Example: js document onload //use window.onload=()=>{};