W3c--bom (1) Knowledge grooming

Source: Internet
Author: User

"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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.