HTML Navigator userAgent Property

The HTML navigator userAgent property returns the value of the user-agent header sent by the browser to the server.

Syntax

Following is the syntax ?

navigator.userAgent

Let us see an example of HTML navigator userAgent property ?

Example




HTML navigator userAgent property Demo

Output

Click on "Show user-agent header value" button to display browser user-agent header value ?

Updated on: 2026-03-11T22:50:45+05:30

258 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements