Use class of element in Javascript

How can I use class of elements in an action using a JavaScript? For name I use getElement(element) what suntax for class ?


There’s no methods to get elements by class name yet.
Currently, class name is only used to set CSS classes for elements so that they can be styled by the CSS .class selector.