window.onload
- onload is a function that the window object provides
- only executes (runs) code when every asset on the page has loaded
- safest place to put code if something on the page is to be manipulated (for now)
Example
window.onload = function(event) {
console.log('Hi mom');
}