The userAgent property returns a string identifying the browser.
This value is often sent to servers during HTTP data requests.
<html> <head> <title> Example of the userAgent property of the navigator object</title> </head> <body> <script language="JavaScript"> <!-- document.write(navigator.userAgent); --> </script> </body> </html>