![]() |
VOOZH | about |
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:
Output:
Before clicking the button:
After clicking the button:
Supported Browsers: The browser supported by Navigator userAgent are listed below: