Navigator appCodeNameProperty

Navigator 对象参考手册Navigator Object

Definition and Usage

The appCodeName property is a read-only string that declares the browser's code name.

Syntax

navigator.appCodeName


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the appCodeName property.


Example

Example

Return the browser's code name:

<script>

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

</script>

The output of the above example is:


Try it yourself »


实例s

More Examples

This example contains all navigator properties


Navigator 对象参考手册Navigator Object Other extensions