title: Display image from a given url
body: <p>I have an array with 3 cells.At the first cell i have a textarea where you can insert the url of an image.At the second cell i have a button which when you click the image display at the third cell where i have a div to display the image.The question is how can i display the image either from the internet either from local?
  The code i wrote is:</p>
  
  <pre><code>function loadImage(){
    var mydiv = document.getElementById("idofdivtodisplayimg");
    var url = document.getElementById("idoftextareawhereyouputtheurl");
    mydiv.innerHTML = url.value;
  }
  </code></pre>