Assuming the online API you are referring to is the MSDN documentation, you can find it in this MSDN article : ECMAScript Class Library .
You should search Google for “Sharepoint 2010 ECMAscript” and you will find many useful articles explaining its use.
source
share