Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

New in JavaScript 1.3

Our volunteers haven't translated this article into Català yet. Join us and help get the job done!

The following is a changelog for JavaScript from Netscape Navigator 4.0 to 4.5. The old Netscape documentation can be found on archive.org. Netscape Navigator 4.5 was released on October 19, 1998.

The most significant change in JavaScript 1.3 was compliance with ECMA-262 and Unicode by removing inconsistencies between JavaScript 1.2 and the new ECMA standard (which was published in June 1997). Additional features of version 1.2, at the time not specified by ECMA-262 were kept in the JavaScript language (see below for a list of differences).

JavaScript versions

Netscape Communicator and Navigator 4.06 and 4.5 executes JavaScript language versions up to 1.3. Note that Communicator and Navigator 4.0-4.05 and earlier ignored scripts with the language attribute set to "JavaScript1.3" and higher.

<SCRIPT LANGUAGE="JavaScript1.2"> <!-- JavaScript for Navigator 4.0. -->
<SCRIPT LANGUAGE="JavaScript1.3"> <!-- JavaScript for Navigator 4.5. -->

New features in JavaScript 1.3

New globals

New methods

Other new features

Changed functionality in JavaScript 1.3

  • Changes to Date to conform with ECMA-262
    • New constructor Date(year, month, day, [,hours [, minutes [, seconds [, milliseconds ]]]])
    • Additional method parameters:
      • setMonth(month[, date])
      • setHours(hours[, min[, sec[, ms]]])
      • setMinutes(min[, sec[, ms]])
      • setSeconds(sec[, ms])
  • The length of an array (property length) is now an unsigned, 32-bit integer.
  • Array.prototype.push(): In JavaScript 1.2, the push method returned the last element added to an array. Under JavaScript 1.3, push returns the new length of the array.
  • Array.prototype.slice(): In JavaScript 1.2, the splice method returned the element removed, if only one element was removed (howMany parameter is 1). In JavaScript 1.3, splice always returns an array containing the removed elements. If one element is removed, an array of one element is returned.
  • Changes to String.prototype.replace().
  • Changes to the Boolean object.
  • Changes to toString().

Non-ECMA-262 features of JavaScript 1.3

The following is a comparison between the June 1998 version of ECMA-262 and JavaScript 1.3. The following features were not part of the standard at that time, but implemented in JavaScript 1.3.

Keywords and operators

Statements

Built-in objects

Methods of built-in objects

Document Tags and Contributors

 Contributors to this page: fscholz, teoli, Sheppy, ethertank, XP1, user01, Brettz9
 Last updated by: fscholz,