title: how to get image file from local folder and display them on webpage?
body: <p>I am new for javascript and also learning myself js. I used following code to get image files from local folder to webpage but its not working. Please can anyone help me to solve this</p>
  
  <pre><code>  Function parentImg()
    {
   Var image1=new image();
   for ( var i=0; i=3; i++)
   {
   Image1.src="image/parentImg/" + i;
   document.getElementById("parent").src=image1;
   }
   }
  </code></pre>