Hi,
I just started learning Javascript and I’m surprised how close it is to Actionscript 3.0, anyways, I was wondering if is there a complete reference for Javascript similar to the Actionscript reference found here, something that lists all of the native Javascript classes and methods.
Is there some Javascript documentation that I can refer to?
Thanks a lot!
Thanks a lot.
It looks like JScript is what I was looking for ecxept that I don’t think it is listing all of the functions because I couldn’t find the getElementById() function.
I would recommend the Mozilla source over the MS source - Microsoft’s implementation is arguably the least standard
getElementById() is part of the DOM, not JavaScript
EMCAscript is the standard, JavaScript and JScript are versions of the standard.
There are very few differences between JavaScript and JScript.
One that springs to mind is array length
var ar = ['a','b',]; // no value after the last comma
alert(ar.length); // Fx 2, IE 3
I would recommend the Mozilla source over the MS source - Microsoft’s implementation is arguably the least standard
Which one would be the Mozilla’s source?
getElementById() is part of the DOM, not JavaScript
So, this means that the DOM has its own methods or functions that can work with Javascript or perhaps in some other languages too?
Sorry but Im new to Javascript and the DOM sort of.
Thanks
Thanks a lot for the clarification.
Do I need to learn the DOM for each browser (IE, FF, Safari etc)?
Thanks
Learn it for Fx, but don’t forget the differences in IE.
An alternative is to use a framework like jQuery