window add event listener page load code example Example: document load javascript window.onload = function() { // Code here }