title: How to set src of image by a function call?
body: <p>I want to set the <code>src</code> of an image to the return value of a function call. Here is what I am doing now:</p>
  
  <pre><code>&lt;img src="get_src()" alt="can't display picture" /&gt;
  </code></pre>
  
  <p>and the script is:</p>
  
  <pre><code>function get_picA() {
      return "picA.png";
  }
  </code></pre>
  
  <p>But it doesn't work.</p>