title: How to display dynamic url image in html from which created by javascript
body: <p>I am trying to display the image directly in HTML through a dynamic link I generated by Javascript. </p>
  
  <pre><code>function dynamicUrl() {
  var url = "http://xxx.xxx.xxx" + dynamic_variables + ".jpg";
  return url;}
  </code></pre>
  
  <p>Most of my research, people display image by click on buttons
  or what I can do for now is link to the image.</p>
  
  <pre><code>&lt;a href="javascript:window.location=dynamicUrl();"&gt;test&lt;/a&gt;
  </code></pre>
  
  <p>Anyone know how to directly display the image using the dynamic URL?
  Thanks!</p>