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