The study of Navigator

Source: Internet
Author: User

the Navigator object contains information about the browser.
Note: There is no public standard applied to the Navigator object, but this object is supported by all browsers. I feel the need to see what properties and methods, directly output the Navigator, and then view in the browser. An instance of the Navigator object is unique and can be referenced by the Navigator property of the Window object.  
    1. console.log(Navigator);
    2. console.log(window.Navigator);
 Results:Navigator cannot be uppercase, so it becomes a function.
    1. console.log(navigator);
    2. console.log(window.navigator);
The result of Firefox: Safari results: IE9 results: Opera:Some notes:appCodeName: declares the browser'scode name;The result values areits value is "Mozilla"; AppName: can returnname of the browser.
 in a Netscape-based browser, the value of this property is "Netscape". In IE, the value of this property is Microsoft Internet Explorer.
 appversion: platform and version information for the browser.
 cookieenabled: true if the browser is enabled for cookies.
 OnLine:declares whether the system is inoffline mode





The study of Navigator

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.