i don't understand fully what u are searching for, or you didn't understood, how HTML and JS works, because you can generate everything in JS dynamicly
Code:<!DOCTYPE html> <html> <head> <script language="javascript"> function init() { var newDiv = document.createElement("div") var HTMLTextField = document.createTextNode("My JavaScript generated Element") newDiv.appendChild(HTMLTextField) document.body.appendChild(newDiv) window.removeEventListener("load", init) } window.addEventListener("load", init) </script> </head> <body> <!-- nothing in here --> </body> </html>