@sdetweil
Thanks for all your help so far!
I am currently trying to build a step by step form, which the user will interact with to answer a number of questions.
Would it be possible to run each element of this form as separate functions called by the getDom function?
Also, to make things easier, would it be possible to call in a piece of html into the js file to work with, instead of having to build the entire form using the createElement functions?
The example I am currently trying to build is similar to this:
https://www.w3schools.com/howto/howto_js_form_steps.asp