window child objects


In the console input


History
history.length number of history records
history.back () reverse
history.forward () proceeds
history.go (n) to jump to a page, can be positive or negative, when n is o refresh the page when


LOCATION
the window.location;
LOCATION .href: You can change the address
location.search: query data
location.hash: return to anchor
location.reload (true / false): refresh the page, true do not go cache, false go caching. Default does not take cache
location.assign () parentheses is empty, refresh the page

navigator

   Navigator object contains information about the browser.

  appName Returns the name of the browser.

  appCodeName Returns a string of code name of the browser.

  cookieEnabled Boolean value indicating whether the browser to enable cookie.

  Returns the platform operating system platform running the browser.

  appVersion return platform and version information of the browser.

  User-Agent header string representation userAgent--

 

  Screen 

  Screen object contains information about the client display screen.

  height Returns the height of the display screen. Returns the width of the width of the display screen.

  availHeight display screen available height (in addition to Windows taskbar).

  availWidth display screen available width (in addition to Windows taskbar).




Guess you like

Origin www.cnblogs.com/hy96/p/11409088.html