If I have a var named src, how can I write that into innerHTML?
E.g.
var src = $(this).attr("src");
_html.innerHTML = '<img src="" />';
Place the var src as the img src?
_html.innerHTML = '<img src="' + src + '" />';
It looks like you are using jQuery. If so, you can do it this way:
var src = $(this).attr("src");
var $img = $("<img>").attr("src",src)
$("#yourObject").append($img)
$("#yourObject").html($img)