About 556,000 results
Open links in new tab
  1. Navigator userAgent Property - W3Schools

    The userAgent property returns the user-agent header sent by the browser to the server. The userAgent property is read-only. The value returned, contains information about the browser …

  2. Getting the User Agent with JavaScript - Stack Overflow

    Feb 26, 2012 · I'd like to get a script that can grab the user's user agent and prop it to an attribute. I'm making a website problems contact form and I usually need to know what browser the user …

  3. Setting a custom userAgent in HTML or JavaScript

    Apr 23, 2014 · The User-Agent header is no longer forbidden, as per spec — see forbidden header name list (this was implemented in Firefox 43) — it can now be set in a Fetch Headers …

  4. Navigator: userAgent property - Web APIs | MDN - MDN Web Docs

    Jul 26, 2024 · The Navigator.userAgent read-only property returns the user agent string for the current browser.

  5. javascript - Sending a custom User-Agent string along with my …

    I'm using the fetch API in React, and I'm pulling down some data from a JSON endpoint. As part of my requests, I want to send a custom User-Agent string. Currently, when I inspect my …

  6. Browser detection using the user agent string (UA sniffing)

    Apr 12, 2025 · Along with every request to a server, browsers include a User-Agent HTTP header with a value called a user agent (UA) string. This string is intended to identify the browser, its …

  7. How to Get the User Agent in JavaScript: An In-Depth Guide for …

    Dec 27, 2023 · Accessing the User Agent in JavaScript. The user agent is exposed via the navigator.userAgent property: const agent = navigator.userAgent; This will return the full user …

  8. Understanding JavaScript Browser User Agent - webdevtutor.net

    Mar 17, 2025 · JavaScript provides powerful tools to interact with the browser's user agent string, allowing developers to tailor their applications based on specific browser characteristics. What …

  9. User-Agent - HTTP | MDN - MDN Web Docs

    Mar 13, 2025 · The HTTP User-Agent request header is a characteristic string that lets servers and network peers identify the application, operating system, vendor, and/or version of the …

  10. JavaScript User Agent – A Handy Guide - Vulgaris Over IP

    To access the User Agent information in JavaScript, you can make use of the navigator.userAgent property. This property returns a string that contains the entire User Agent string. One of the …

  11. Some results have been removed
Refresh