JavaScript Version Supported by Browsers

This section describes the differences type='text/javascript' or language='JavaScript' attributes.

If you want to test which JavaScript is supported by a Web browser, you can use the following script example:

<html>
<!-- JavaScript_Version_Test.html
   Copyright (c) 2013 HerongYang.com, All Rights Reserved.
-->
<head>
<title>JavaScript Version Test</title>
<script type="text/javascript">
   version = "Unknown";
</script>
<script language="JavaScript1.1">
   version = "JavaScript1.1";
</script>
<script language="JavaScript1.2">
   version = "JavaScript1.2";
</script>
<script language="JavaScript1.3">
   version = "JavaScript1.3";
</script>
<script language="JavaScript1.4">
   version = "JavaScript1.4";
</script>
<script language="JavaScript1.5">
   version = "JavaScript1.5";
</script>
<script language="JavaScript1.6">
   version = "JavaScript1.6";
</script>
<script language="JavaScript1.7">
   version = "JavaScript1.7";
</script>
<script language="JavaScript1.8">
   version = "JavaScript1.8";
</script>
</head>
<body>
<p>Version supported: 
<script type="text/javascript">
   document.writeln(version);
</script>
</p>
</body>
</html>

Here is my test result:

Google Chrome: JavaScript1.7
Mozilla Firefox: JavaScript1.5 
Internet Explorer 11: JavaScript1.3 

Last update: 2018.

Table of Contents

 About This Book

 Introduction to JavaScript

 ECMAScript Language Specification and JavaScript Dialects

 Data Types, Variables and Expressions

 Flow Control Statements

 Creating, Accessing, and Manipulating Arrays

 Defining and Calling Functions

Web Browser Supporting JavaScript

 JavaScript Support in Web Browsers

 Including JavaScript Codes with HTML "script" Tags

 type="text/javascript" or language="JavaScript"

JavaScript Version Supported by Browsers

 Including 'script' Tags in String Literals

 Escaping 'script' Tags in String Literals

 Using HTML Entities to Protect HTML Tags

 Including JavaScript Codes as External Files

 DOM API - The "document" Object

 DOM API - The "window" Object

 DOM API - The "window.open" Method

 Event Listeners and Objects

 'javascript:' Pseudo-URL Addresses

 JavaScript Console in Google Chrome

 JavaScript Console in Mozilla Firefox

 JavaScript Console in IE (Internet Explorer)

 Server-Side and Client-Side Web Scripting

 Introduction to Objects

 Defining Your Own Object Types

 Inheritance of Properties and Methods through the Prototype Object Chain

 'jrunscript' - JavaScript Shell Command from JDK

 Using Functions as "Function" Objects

 Introduction to Built-in Object Types

 W3C's Document Object Model (DOM) Specifications

 References

 Full Version in PDF/EPUB