select image on drive with javascript
<p>I have created a website, when the admin dblclick on the image then he can choose for a new one. That I will accomplish with javascript. But, I don't have any idea to do that, the following code is the html.
<img src="http://i.stack.imgur.com/lVyBE.png" alt="enter image description here"></p>

<pre><code>&lt;form action="controller.php" method="post" class="popupform" id="form_changeillustration" enctype="multipart/form-data"&gt;
&lt;dl&gt;
  &lt;dt&gt;&lt;label for="newillustration"&gt;choose a new photo: &lt;/label&gt;&lt;/dt&gt;
  &lt;dd&gt;&lt;input type="file" name="newillustration" id="newillustration" /&gt;&lt;/dd&gt;
  &lt;dt&gt;&amp;nbsp;&lt;/dt&gt;
  &lt;dd class="buttonrow"&gt;
    &lt;input type="hidden" name="page" value="{$PAGE}" /&gt;
    &lt;input type="hidden" name="module" value="newillustration" /&gt;
    &lt;input type="submit" class="btnOk" value="edit" /&gt;
    &lt;input type="button" class="btnCancel" value="cancel" /&gt;
  &lt;/dd&gt;
&lt;/dl&gt;
&lt;/form&gt;
</code></pre>
