If yes, how? If not, is there any way I can get the title value, then print? For now it's like this (Inside a function. In the image it has an onClick calling it).
var imagens = document.getElementsByTagName('img');
document.getElementById('legenda').innerHTML = imagens;
I have already tried for a getAttribute too and nothing