Your Search Results

    navigator.appName

    Summary

    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".

    Syntax

    appName = window.navigator.appName 
    
    • appName is the name of the browser as a string.

    Example

    alert(window.navigator.appName); 
    // shows the name of the browser
    

    Specification

    This was originally part of DOM Level 0, but has been since included in the HTML5 spec.

    Document Tags and Contributors

    Contributors to this page: Dria, WwxMjg
    Last updated by: WwxMjg,