window.onload = function exampleFunction() { // Function to be executed }
<body onload="functionToBeExecuted">