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