JavaScript Version Supported by Browsers

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

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

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

Here is my test result:

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

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 "" Method

 Event Listeners and Objects

 'javascript:' Pseudo-URL Addresses

 JavaScript Console in Google Chrome

 JavaScript Console in Mozilla Firefox

 JavaScript Console in Apple Safari

 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

 AJAX (Asynchronous JavaScript And XML)


 Full Version in PDF/EPUB