getElementsByClassName-1.0.1.js code example Example: getelementbyclass var selector = document.getElementsByClassName('class-name');