queryselectorAll - find an element with more than one matching class
Just add a dot..
document.querySelectorAll("a.classOne.classTwo")
The same way you would in CSS:
document.querySelectorAll("a.classOne.classTwo");
example: http://jsfiddle.net/gcf6w/6/