Navigator appNameProperty

Navigator 对象参考手册Navigator Object

Definition and Usage

The appName property returns the name of the browser.

Syntax

navigator.appName


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the appName property


Example

Example

Return the name of the browser:

<script>

document.write("Browser name: " + navigator.appName);

</script>

The output of the above example is:


Try it yourself »


实例

More Examples

This example contains all the navigator properties.


Navigator 对象参考手册Navigator Object Other Extensions