<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'>
window.onload=function(){
var el = document.querySelector("div div div a"),
value = el.innerHTML;
console.log(value);
}
</script>
</head>
<body>
<div>
<div>
<a>Not this one, only two divs</a>
</div>
<div>
<div>
<a>This one!</a>
</div>
</div>
</div>
</body>
</html>