<span onmouseover="document.getElementById('cinfo').firstChild.nodeValue = '<img src=\'http://farm3.static.flickr.com/2355/1527780565_a174884da4.jpg\'>';"> <label id="cinfo">Image should be displayed here, but it just displays the code </label> It displays <img src='http://farm3.static.flickr.com/2355/1527780565_a174884da4.jpg'> not the image itself. Why is that? Would it be possible to make it show the image?
<span onmouseover="document.getElementById('cinfo').innerHTML = '<img src=\'http://farm3.static.flickr.com/2355/1527780565_a174884da4.jpg\'>';">