Home > Web Front-end > HTML Tutorial > BOM_html/css_WEB-ITnose studied on July 15th

BOM_html/css_WEB-ITnose studied on July 15th

WBOY
Release: 2016-06-24 11:41:02
Original
1114 people have browsed it

setTimeout() //Delayer, 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 //The 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 two files in the server to get the desired result. If you directly place the local file folder, you will get an empty string. If you directly enter the URL address of b.html in the browser address bar or use the open menu to access b.html, the value of document.referrer will be an empty string.

window.moveBy // by means relative (from the original position)

window.moveTo // to means absolute (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 top of the screen

Note:

Browser window position:

IE, Chrome, Safari, Opera all provide support 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   //Returns to the URL of the previous position in the browser history

document.title   //Return the text displayed in the title tag in the current page

document.URL   //Return the URL of the current page

document.anchors[0].innerHTML  //The first page in the page The content of an anchor

location.reload(false) //This method forces the browser to refresh the current page

navigator.appCodeName //Declare the browser’s code name

navigator.appVirson  //Returns the platform and version information of the browser. This property is a read-only string

eval      //Can handle a piece of JS code represented by a string

encodeURI   // Encoding

decodeURI   // Decoding

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template