This site is mobile accessible. Press the "Tap Here" button to use a different font-size.



Smartphone icons created by Freepik - Flaticon

The Navigator Object

The userAgent property returns the user-agent header sent by the browser to the server:

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

// detects and displays the user-agent header sent by the browser to the server
document.getElementById("demo").innerHTML =
navigator.userAgent;

Warning