BOM for learning in July 15, bom for July 15

Source: Internet
Author: User

BOM for learning in July 15, bom for July 15

SetTimeout () // latency, only one Code Execution

ClearTimeout () // clear the presenter

 

SetIntervla () // timer, which executes the code once according to the specified time interval

ClearInterval () // clear the timer

Window. history. length // number of historical pages accessed

Window. history. forward () // Previous Page

Window. history. back (); // next page

Window. history. go (-1); // jump to a previously visited page. A negative value indicates backward hop.

Document. referrer // empty, the value of document. referrer is an empty string.

Window. moveBy // by indicates relative meaning (from the original position)

Window. moveTo // to is the absolute meaning (from the whole)

Window. moveTo // adjust the window size to the specified width and height.

Window. resizeBy // increase or decrease the window size by the specified width and height.

Window. screenLeft/window. screenX // distance from the left side of the screen

Window. screenTop/window. screenY // distance from the screen top

Note:

Browser window location: IE, Chrome, Safari, and Opera all support windows. screenLeft and window. screenTop, but Firxfox does not support these two attributes. Firxfox, Chrome, Safari, and Opera all provide window support. screenX and window. screenY, but IE does not support these two attributes;

 

Document. body. offsetHeight/document. body. clientHeight // content height (body height) window. innerHeight // use document.doc umentElement under chorm. clientHeught // the upload height document.doc umentElement of the browser. scrollHeight // The height of the content (html's height is document.doc umentElement. scrollTop // The scroll height of the scroll bar

Window. open // open a new window. close // close the window. defaultStatus/window. status // Status bar Information Note: window. status obtains the temporary value assigned by the script. Window. defaultStatus gets the default value. Document. lastModified // return the last modification time of the document. referrer // return the URLdocument at the previous position in the browser history. title // return the text document displayed in the title tab of the current page. URL // return the URLdocument of the current page. anchors [0]. innerHTML // content location of the first anchor in the page. reload (false) // This method forces the browser to refresh the current page navigator. appCodeName // declare the browser code name navigator. appVirson // return the platform and version information of the browser. This attribute is a read-only string eval // can process a piece of JS Code represented by a string, encodeURI // encoded decodeURI // decoded

Related Article

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.