-
appCodeName
This is the code name of the browser for ex: Mozilla
-
appName
This is the name of the browser for ex: Microsoft Internet Explorer
-
userAgent
This will return the user agent header information.
function checkBrowser(){ if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ return "Firefox"; }else if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ return "IE"; }else if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ return "Opera"; }else{ // you can add more condition in here. return "Not Specified"; } }