document load javascript

JavaScript
window.onload = function() {
  // Code here
}//use
window.onload=()=>{};function load(argument) {
	// body...
}
window.onload = load;
Source

Also in JavaScript: