The js method that lets the browser DOM element load last

  • 2020-03-30 03:34:51
  • OfStack

The js method that lets the browser DOM element load last


window.onload = =function() { a(); b(); }

Just after all the elements of the interface are loaded, execute methods a() and b() to prevent dialog boxes from popping up in the middle of the interface and leaving the background blank


Related articles: