title: How to display image with JavaScript?
body: <p>I am trying to display image, through JavaScript, but i can't figure out how to do that. I have following</p>
  
  <pre><code>function image(a,b,c)
  {
    this.link=a;
    this.alt=b;
    this.thumb=c;
  }
  
  function show_image()
  {
    document.write("img src="+this.link+"&gt;");
  }
  
  image1=new image("img/img1.jpg","dsfdsfdsfds","thumb/img3");
  </code></pre>
  
  <p>in HTML</p>
  
  <pre><code>&lt;p&gt;&lt;input type="button" value="Vytvor" onclick="show_image()" &gt; &lt;/p&gt;
  </code></pre>
  
  <p>I can't figure out where should I put something like <code>image1.show_image();</code>.</p>
  
  <p>HTML? Or somewhere else...</p>