My a-tag (link) contains innerHTML which is an image like this:
.innerHTML =
Being $a your element.
$a
Using jQuery you can do:
$("img", $a).first().attr("alt");
Or, using pure JavaScript:
var $img = $a.getElementsByTagName("img")[0]; console.log($img.alt);
See it here.