<a href="http://www.google.com" class="a-href">Google</a>
var domains = document.querySelector('.a-href');
for(var i = 0; i < domains.length; i++){
var anchors = domains.getElementsByTagName('a');
for (var j = 0; j < anchors.length; j++) {
console.log(anchors[j].attributes.href);
}
}