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