Global variables are part of the properties of the Window object. Example:
var test = 'test';
alert(window.test);
The approximate sequence of browser rendering and operating HTML:
HTML parsing completed
External scripts and stylesheets are loaded
Scripts are parsed and executed within the document
HTML DOM is fully constructed
Images and external content are loaded
Web page is loaded
All major browsers They all implement the innerHTML attribute, but because there is no unified standard, there are more or less weird bugs.
Mozilla-based browsers will not return the