JavaScript: Browser Info

By Xah Lee. Date: . Last updated: .

Here's 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's 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>`;
βˆ‘ JS in Depth
XAH Β BUY NOW

JS in Depth

JS Obj Ref

DOM


DOM

Overview

Basic Examples

HTML Input

Web Scripting Examples

Web Scripting Misc

jQuery

node.js