display array of images using getelementbyid in js
<pre><code>for (i=0;i&lt;tar.length;i++) {
document.write("&lt;img src=" + tar[i] + " width='100' height='100'&gt;"+"  ");
}  
</code></pre>

<p>tar array has image sources, i want to display that using getElementById not by document.write</p>
