show images using javascript and CSS
<p>I have to create a javascript code which calls different images on the click of an image button. I have given names to the images as product1, product2, product3. I am new to JavaScript.</p>

<pre><code>var count;
document.getElementById("divProduct").style.backgroundImage="url('images/product'+count)";
</code></pre>

<p>I am trying the above code, but it's not working</p>
