If i want to execute multiple functions at the same time,These functions can be put into an array,Then loop the array and execute it in the onload event,Or use another convenient function, uploadevent:

function addloadevent (func) {
  var oldonload=window.onload;
  if (typeof window.onload!="function") {
   } else {
    window.onload=function () {
         if (oldonload) {
          oldonload ();
      func ();
  • Previous Improved Android weather forecast app
  • Next The perfect realization of eight kinds of js focus carousel (Part 1)