JS sur la page Prêt

document.addEventListener("DOMContentLoaded", function(event){
  // your code here
});

Better than 

window.onload = function(){
    // code goes here
};
Lokesh003Coding