Getting the User Agent with JavaScript Getting the User Agent with JavaScript javascript javascript

Getting the User Agent with JavaScript


Pure Javascript

document.getElementById('UserAgent').value = navigator.userAgent;
<input type="text" id="UserAgent">