HTML DOM Navigator userAgent Property (original) (raw)

Last Updated : 14 Jun, 2023

The Navigator userAgent property is used for returning the user-agent header's value sent to the server by the browser. It returns a string representing values such as the name, version, and platform of the browser.

Syntax:

navigator.userAgent

Return Value: A String, representing the user agent string for the current browser

Below program illustrates the Navigator userAgent Property:

HTML `

Navigator userAgent Property in HTML