"One" BOM Browser object model
1. Window
1.1 The internal height of the Window.innerheight browser window, window.innerwidth the internal width of the browser window (for Internet Explorer, Chrome, Firefox, Opera, and Safari; Without reducing the width of the right drop-down bar);
1.2 Document.documentelement.clientheight/document.body.clienthieght and Document.documentElement.clientWidth/ Document.body.clientWidth (for Internet Explorer 8, 7, 6, 5; minus the right drop-down bar);
1.3 window.open ()-Opens a new window;
1.4 Window.close ()-Close the current window;
1.5 Window.moveto ()-Moves the current window;
1.6 Window.resizeto ()-Adjusts the size of the current window;
2. Screen
2.1 Window.screen.availWidth-the available screen width;
2.2 window.screen.availHeight-Available screen height
3. Location
3.1 Window.location.hostname Returns the domain name of the web host;
3.2 Window.location.pathname returns the path and file name of the current page;
3.3 Window.location.port Returns the port of the web host (80 or 443);
3.4 Window.location.protocol Returns the Web protocol used (HTTP//or https://)
4. Hositry
4.1 Window.history.back ()-the same as clicking the Back button in the browser;
4.2 Window.history.forward ()-Same as clicking the button in the browser forward
W3c--bom (1) Knowledge grooming