how to add items onn window load in javascript code example Example: js document onload //use window.onload=()=>{};