my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes Is Javascript1.5 supported by IE6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Is Javascript1.5 supported by IE6" Watch "Is Javascript1.5 supported by IE6" New topic

Is Javascript1.5 supported by IE6

shilpa thakare

Joined: Feb 21, 2007
Posts: 11
Hello All,

Sorry if I am repeating the question!

Actually I want to ask it differently now!

I know that language attribute i.e language="javascript1.5"
is not supported by IE
Well, I've tried one scripting feature of Javascript1.5, which is
methods like Number.toFixed(x) and Nubmer.toPrecision(x).
They worked in IE6.

BUT another feature for eg. multiple catch block for single
try block is not supported in IE6. (the same one supported by Mozilla).

I am not able to figure it out completely from net/books.
I think and I am sure I'll get perfect answers from some
experienced people over here.

I am not doing any of the javascript coding.
But you can think my product will parse each javascript token
and identify its function.
Most recommended browser for customer is IE6.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

I am not a pro but I think that IE uses its own implementation called JScript.
IE6 supports JScript5.6, which is about the same as Javascript 1.5 (meaning not completely the same)

As you said, there can be only one catch block in JScript 5.6.

You can find a complete reference here :

[My Blog]
All roads lead to JavaRanch
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 408
I ran a script the other day in IE7, that responded it supports 1.3. A little complicated I suppose, since Microsoft has JScript. In case it's any help, here's the script:

<script type="text/javascript">
var jsver = 1.0;
<script language="Javascript1.1">
jsver = 1.1;
<script language="Javascript1.2">
jsver = 1.2;
<script language="Javascript1.3">
jsver = 1.3;
<script language="Javascript1.4">
jsver = 1.4;
<script language="Javascript1.5">
jsver = 1.5;
<script language="Javascript1.6">
jsver = 1.6;
<script type="text/javascript">
document.write('<p><b>Javascript version ' + jsver
+ ' supported<\/b><\/p>');

Correlation does not prove causality.
I agree. Here's the link:
subject: Is Javascript1.5 supported by IE6
jQuery in Action, 3rd edition