JavaScript: Browser Info

By Xah Lee. Date: . Last updated: .

Here is how to find info about browser, such as if cookies is on, java is installed, or browser version.

The object navigator stores info about browser.

Here's your browser status:

Here is the code.

<div id="outputBox13302"></div>
document.getElementById("outputBox13302").innerHTML = `<ul>
<li><b>navigator.appName:</b> ${navigator.appName}</li>
<li><b>navigator.appCodeName:</b> ${navigator.appCodeName}</li>
<li><b>navigator.appVersion:</b> ${navigator.appVersion}</li>
<li><b>navigator.platform:</b> ${navigator.platform}</li>
<li><b>navigator.product:</b> ${navigator.product}</li>
<li><b>navigator.userAgent:</b> ${navigator.userAgent}</li>
<li><b>navigator.cookieEnabled:</b> ${navigator.cookieEnabled}</li>
<li><b>navigator.javaEnabled:</b> ${navigator.javaEnabled()}</li>
</ul>`;
BUY
Ξ£JS
JavaScript in Depth

DOM Scripting Tutorial

Overview

Basic Examples

HTML Input

Web Scripting Examples

Web Scripting Misc

jQuery

node.js