//like in my previous post, I will set the value of window.onload //equals to init and then define it separately window.onload = init; function init(){ for (var i=0; i < localStorage.length; i++){ var key = localStorage.key(i); if (key.substring(0, 6) === 'sticky'){ //will explain this var value = localStorage.getItem(key); addStickiesToPage(value); //we will create this one } } } // //this function will insert the sticky notes to the DOM //inside the