applying image using innerHtml Method but its not working
<p>Hello friends here's my code</p>

<pre><code>function dropItems(idOfDraggedItem,targetId,x,y)
{
    var html = document.getElementById('dropContent').innerHTML;
    if(html.length&lt;=0){
        html.innerHTML='&lt;img src="images/drag.jpg" alt=" " /&gt;'
    }
    if(html.length&gt;0)html = html + '&lt;br&gt;';
    html = html + document.getElementById(idOfDraggedItem).innerHTML;
    document.getElementById('dropContent').innerHTML = html;
}
</code></pre>

<p>I want to to show a image in div when its empty.. but when it receive any data i want to remove that image by using this script .but its not working plz help me </p>
