title: Javascript enlarge image on click (without frameworks)
body: <p>I am new to JS and here.
  This code upload photos from JSON with a size limit on the photo. How to increase on click?</p>
  
  <pre><code>function renderUserPhotos(data, container) {
    var content = "";
    for (i = 0; i &lt; data.length; i++) {
      var title = data[i].title ? data[i].title : 'None';
      var url= data[i] ? data[i].url : null;
      var id = data[i].id;
      content += "&lt;li class='photo'&gt;&lt;img width='50px' src='" + url + "' /&gt;&lt;/li&gt;";
  </code></pre>