title: javascript pop-up window with clickable image
body: <p>I have a pop-up window (in Javascript) in which I would like to include a button hidden in an image.</p>
  <p>So if the user clicks on the image the action should be performed. In HTML this is easy, but I don't know how to do this in Javascript.
  Thanks for any help.</p>
  <p>What I know is how to do it with TEXT. This is how I do it:</p>
  <pre><code>document.write('&lt;input type=&quot;button&quot; value=&quot;F e r m e r&quot; onClick=\'window.close()\' class=&quot;button&quot; onmouseover=&quot;this.className=\'buttonon\'&quot; onmouseout=&quot;this.className=\'button\'&quot; style=&quot;width: 100px;&quot;&gt;'); 
  </code></pre>