setTimeout() // Delay, only execute the code once
clearTimeout() //Clear the presenter
setIntervla() //Timer, execute the code once according to the specified time interval
clearInterval() //Clear timer
window.history.length //Number of visited history pages
window.history.forward() //Previous page
window.history.back(); //Next page
window.history.go(-1); //Jump to a page you have visited before, a negative value means jumping backwards
document.referrer//You need to place the two files in the server to get the desired result. If you put them directly in the local folder, you will get an empty string. If you enter b.html directly in the browser address bar URL address or use the open menu to access b.html, the value of document.referrer is an empty string.
window.moveBy //by means relative (from the original position)
window.moveTo //to means absolutely (as a 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 top of the screen
Note:
Browser window position:
IE, Chrome, Safari, and Opera all provide support for window.screenLeft and window.screenTop, but Firxfox does not support these two properties;
Firxfox, Chrome, Safari, and Opera all provide support for window.screenX and window.screenY, but IE does not support these two properties;
document.body.offsetHeight/document.body.clientHeight //Content height (height of body)
window.innerHeight //Use under Chorm
document.documentElement.clientHeught //Visual height of the browser
document.documentElement.scrollHeight //Height of content (height of HTML)
document.documentElement.scrollTop //Scroll bar scrolling height
window.open //Open a new window
window.close //Close the window
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 // Returns the last modification time of the document
document.referrer //Return to the URL of the previous position in the browser history
document.title //Returns the text displayed in the title tag of the current page
document.URL //Return the URL of the current page
document.anchors[0].innerHTML //The content of the first anchor point in the page
location.reload(false) //This method forces the browser to refresh the current page
navigator.appCodeName //Declare the code name of the browser
navigator.appVirson // Returns 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 //Encoding
decodeURI //Decode
The above is the entire content of this article, I hope you all like it.