1. Home
  2. Javascript
  3. Window onload

Window on load property will run the handler function when the load event is fired. The event is raised when the document, including all objects and elements, has fully loaded.

#javascript#window
window.onload = function() {
    // Run your code here
};
copy
Full Javascript cheatsheet