Latest web development tutorials

Navigator appName property

Navigator Object Reference Navigator Objects

Definition and Usage

appName property returns the name of the browser.

grammar

navigator.appName


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support appName property


Examples

Examples

Returns the name of the browser:

<script>

document.write("浏览器名称: " + navigator.appName);

</script>

Examples of the above output:


try it"


Examples

More examples

This example contains all the properties of the navigator.


Navigator Object Reference Navigator Objects