Location, history, screen, and navigator object attributes and Methods

Source: Internet
Author: User

{Location object :}
Reload // reload the current document
Replace // replace the current document with a new document
Assign // load new document
Href // set or return the complete URL
Protocol // set or return the protocol of the current URL
Host // set or return the URL starting with # (Anchor)
Hostname // set or return the Host Name of the current URL
Port // set or return the port number of the current URL
Pathname // set or return the path of the current URL
Search // set or return the slave? Part of the URL starting
Hash // set or return the host name and port number of the current URL

{History object :}
Back // load the previous URL in the history List
Forward // load the next URL in the history List
Go // load the specified page in the history list

Length // return the total number of URLs in the browser history list

{Screen Object :}
ColorDepth // return the bit depth of the color palette
BufferDepth // set or return the bitdepth of the color palette in off-screen bitmap buffer.
Width // display width
Height // display height
UpdateInterval // set or return the screen update rate
AvailHeight // desktop height (excluding the taskbar)
AvailWidth // desktop width (excluding the taskbar)
FontSmoothingEnabled // check whether font smoothing is enabled

{Navigator object :}
JavaEnabled // whether the browser enables Java applets
TaintEnabled // whether the browser enables tainting)
AppCodeName // return the code name of the browser
AppName // return the browser name
AppVersion // return the browser version information
UserAgent // return the value of the user-agent header sent from the client to the server
Plugins // return the array of all embedded objects in the document
CookieEnabled // check whether the cookie is enabled in the browser.
CpuClass // return the CPU level of the browser IN THE SYSTEM
SystemLanguage // return the default OS Language
BrowserLanguage // return the current browser Language
UserLanguage // return OS language settings
Platform // return the operating system running the browser
AppMinorVersion // returns the current version number of the browser.
OnLine // confirm whether the browser is in offline mode
ConnectionSpeed // connection speed?
OpsProfile //
UserProfile //
MimeTypes //

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.