title: TYPO3 pass Fluid variable value to the Javascript
body: <p>In a fluid template I have a fluid variable which value I would like to use in my JavaScript code.</p>
  
  <p>I am using JavaScript inside of fluid template.</p>
  
  <p>My Code:</p>
  
  <pre><code>&lt;!-- value I would use further in my javascript --&gt;
  &lt;h1 id="product-model"&gt;{product.model}&lt;/h1&gt;
  
  &lt;!-- Javascript code (in the same file) --&gt;
  &lt;script&gt;
     &lt;![CDATA[
       function printProductWindow() {
         document.title = document.getElementById("product");
         window.print(); 
       } 
     ]]&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks in advance!
  Denis</p>