MozillaZine

Javascript 1.5 goes Beta!

Wednesday January 12th, 2000

Javascript 1.5 has reached beta, and you can test it out in Mozilla now. You can read more about Javascript in Mozilla here, and the 1.5 announcement here. The announcement page also has links to discussions going on in the jseng newsgroup regarding some of the new features.

So, what's new? Well, some ECMA-262, revision 3 changes: Conditional function declaration, runtime errors reported as exceptions, and regular expression enhancements. Also, multiple catch clauses, getters and setters, catch keyword, and "strict" mode. Lots of info in the announcement page, so check it out!


#11 Re: What's the story with old-school Javascript st

by reboughner <reboughner@widomaker.com>

Friday January 14th, 2000 2:37 PM

You are replying to this message

If you want to have your page work in the Gecko engine you'll have to rework your javascript so that it adheres to the W3C recommendations. To access elements in your document you'll have to use the document.getElementsByTagName() or document.getElementById()functions.If you use the LAYER tags then the browser will treat them as unknown tags and just display what's contained between them. From what I saw of your code you should be okay in IE5 since it all supports document.all which is backward compatible with IE4.0. It also supports the newer W3C methods and properties that Gecko supports.