Set the load event on the window.