JavaScript Window navigator.userAgent
JavaScript Window navigator.userAgent
The userAgent property is used to return the user-agent header sent by the browser to the server. It is a read-only property. The returned value contains the browser name, version, and platform.
Syntax:-
Its syntax is:- navigator.userAgent
Return:-
Its return is:- a string containing browser user agent header