Returns the name of the browser. The HTML5 specification also allows any browser to return "Netscape" here, for compatibility reasons.
Note: Do not rely on this property to return the correct browser name. In Gecko-based browsers (like Firefox) and WebKit-based browsers (like Chrome and Safari) the returned string is "Netscape".
appName = window.navigator.appName
appNameis the name of the browser as a string.
alert(window.navigator.appName); // shows the name of the browser
- HTML5: The Navigator object
This was originally part of DOM Level 0, but has been since included in the HTML5 spec.