<script type= "Text/javascript" >
function Isie () {
Return Navigator.appName.indexOf ("Microsoft Internet Explorer")!=-1 && document.all;
}
function IsIE6 () {
return Navigator.userAgent.split (";") [1].tolowercase (). IndexOf ("msie 6.0″) = =" -1″?false:true;
}
function IsIE7 () {
return Navigator.userAgent.split (";") [1].tolowercase (). IndexOf ("msie 7.0″) = =" -1″?false:true;
}
function IsIE8 () {
return Navigator.userAgent.split (";") [1].tolowercase (). IndexOf ("msie 8.0″) = =" -1″?false:true;
}
function Isnn () {
Return navigator.userAgent.indexOf ("Netscape")!=-1;
}
function Isopera () {
Return navigator.appName.indexOf ("Opera")!=-1;
}
function IsFF () {
Return navigator.userAgent.indexOf ("Firefox")!=-1;
}
function Ischrome () {
Return navigator.userAgent.indexOf ("Chrome") >-1;
}
</script>
Below is the introduction of the next JS get client browser information
The Navigator object contains information about the browser. JS is to get the client browser information through the properties of Navigator
Navigator Object Properties:
Property
Describe
appCodeName returns the code name of the browser.
appMinorVersion returns the secondary version of the browser.
AppName returns the name of the browser.
AppVersion returns the platform and version information for the browser.
Browserlanguage returns the language of the current browser.
Cookieenabled returns a Boolean value that indicates whether cookies are enabled in the browser.
Cpuclass returns the CPU level of the browser system.
OnLine returns a Boolean value that indicates whether the system is in offline mode.
Platform returns the operating system platform running the browser.
Systemlanguage returns the default language used by the OS.
UserAgent returns the value of the user-agent header of the server sent by the client.
Userlanguage returns the natural language setting of the OS.
JS Gets the current browser type