title: HTML img onclick Javascript
body: <p>How do I have JavaScript open the current image in a new WINDOW with an ONCLICK event.</p>
  
  <pre><code>&lt;script&gt;
   function imgWindow() {
    window.open("image") }
  &lt;/script&gt;
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;img src="pond1.jpg" height="150" size="150" alt="Johnson Pond" onclick="image()"&gt; &lt;-- Have JavaScript open this image with onclick.
  &lt;img src="pond2.jpg" height="150" size="150" alt="All-green Pond" onclick="image()"&gt; &lt;-- Have JavaScript open this image with onclick.
  &lt;img src="pond3.jpg" height="150" size="150" alt="Dutch Pond" onclick="image()"&gt; &lt;-- Have JavaScript open this image with onclick.
  </code></pre>