{TametheBots}

Templates

The Result:

Code

Body:

<template id="ttb-template-test">
<p class="results">It Works!</p>
</template>
<div id="resBox"> </div>

Before closing </body>

<script>
let template = document.getElementById('ttb-template-test');
let templateContent = template.content;
document.getElementById('resBox').appendChild(templateContent);
</script>

< Back