Easy Tutorial
❮ Dom Obj Form Met Canvas Quadraticcurveto ❯

navigator.userAgent Property


Definition and Usage

The userAgent property is a read-only string that declares the value of the user-agent header used by the browser in HTTP requests.

Syntax

navigator.userAgent

Browser Support

All major browsers support the userAgent property.

Chrome IE Edge Firefox Safari Opera
Yes Yes Yes Yes Yes Yes

Example

The user-agent header sent by your browser:

document.write("User Agent: " + navigator.userAgent);

More Examples

This example includes all navigator properties.


❮ Dom Obj Form Met Canvas Quadraticcurveto ❯