Returns the name of the browser. The HTML5 specification also allows any browser to return "Netscape" here, for compatibility reasons.
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.