Navigator Object Learning notes in JavaScript

Source: Internet
Author: User

var browser=navigator.appname
var b_version=navigator.appversion
var version=parsefloat (b_version)
document.write ("Browser name:" + browser)
document.write ("<br/>")
document.write ("browser version:" + version)

document.write ("<p> Specify the browser's code name:")
document.write (navigator.appcodename + "</p>")

document.write ("<p> Platform:")
document.write (Navigator.platform + "</p>")

document.write ("<p>cookies enabled:")
document.write (navigator.cookieenabled + "</p>")

document.write ("<p> User Agent header for browser:")
document.write (navigator.useragent + "</p>")

document.write ("<p> Width of client browser page viewable area:")
document.write (document.documentElement.clientWidth + "</p>")

document.write ("Height of the viewable area of the <p> client browser page:")
document.write (document.documentElement.clientHeight + "</p>")

Navigator Object Learning notes in JavaScript

Related Article

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.