JavaScript Web Browser Detection With Link To Download Update

Last reviewed/updated: 19 Jul 2018 | Published: 04 Feb 2014 | Status: Active
Web browser support: Internet Explorer 10+, Edge 12+, Firefox 6+, Chrome 30+, Opera 17+

1. Introduction

This web page automatically runs the JavaScript Web Browser Detection With Link To Download Update script and displays its report in Section 2 below. For the supported web browsers, the JavaScript: 1.) gets the web browser user-agent string; 2.) from the user-agent string, determines if the web browser is IE, ED, FF, CH, OP, or VI; 3.) if the web browser is IE or ED, from the user-agent string, determines the version of Windows; 4.) from the user-agent string, determines the web browser version; 5.) compares the web browser version to the latest known version of the web browser; and 6.) generates and writes a report to the web page, including; a.) the web browser name and version, b.) whether or not the web browser is the latest known official version, and c.) if it is not the latest known official version, provides a link to download the web browser. For the unsupported web browsers, the JavaScript writes to the web page, Most likely the web browser is not supported by the JavaScript.

The JavaScript supports:

  • IE6+ for Windows XP.
  • IE7+ for Windows Vista.
  • IE8+ for Windows 7.
  • IE10+ for Windows 8.
  • IE11+ for Windows 8.1.
  • ED12+ and IE11+ for Windows 10.
  • FF0.8+ for Windows.
  • CH2+ for Windows.
  • OP5+ for Windows.
  • VV1+ for Windows.

The JavaScript does not support:

  • SF for Windows.
  • SM for Windows.

1.1. Caveats

The JavaScript has the following caveats:

  • Because FF16+ major releases (e.g., FF61) and point releases (e.g., FF61.0.1) have identical user-agent string values, it does not accurately detect/report on the latest FF point releases.
  • Because the OP5 - 12.17 user-agent string value can be changed to mimic the user-agent string value of other web browsers, it does not accurately detect/report on OP9 - 12.17 (Mask As Internet Explorer) and OP10.50 - 12.17 (Mask As Firefox).
  • Because beta, release candidate, and other non-official versions of web browsers are risky to use, and because they often have the same user-agent string value as the official versions, it does not detect/report on beta, release candidate, and other non-official versions of the supported web browsers.
  • It requires a web browser that supports JavaScript and has JavaScript support enabled.
  • It requires updating when a new version of the supported web browsers is released. If the script is not updated for the latest versions of the supported web browsers, it does not accurately detect/report if the web browser is the latest known version.

1.2. Abbreviations

  • IE = Internet Explorer.
  • ED = Edge = EdgeHTML rendering engine (ED12+) and/or Edge browser (ED20+).
  • FF = Firefox.
  • CH = Chrome.
  • OP = Opera.
  • SF = Safari.
  • SM = SeaMonkey.
  • VV = Vivaldi.

2. JavaScript Web Browser Detection With Link To Download Update