title: Using javascript in thymeleaf th:src
body: <p>I'm trying to do something like this:</p>
  
  <pre><code> &lt;iframe th:src="'myFunction($videoUrl);'"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>where myFunction is a jQuery function. I want the src value to be the output of the function. </p>
  
  <p>So far, I've tried</p>
  
  <pre><code>&lt;iframe th:src="'javascript:myFunction(\''+ ${videoUrl} +'\');'" &gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>However the output is not the result of the function, but the function with the url as attributeL. I'm guessing this works well with onClick, but it's not what I'm looking for.</p>
  
  <p>Is it possible?</p>