diff --git a/jspp.js b/jspp.js index e9d30be..7b4ed76 100644 --- a/jspp.js +++ b/jspp.js @@ -508,7 +508,7 @@ class JSPlusPlus { } createButton(elementID, text, attributes = {}) { - let elem = createElement("button", elementID); + let elem = htmlFront.createElement("button", elementID); elem.innerText = `${text}` for (const [name, value] of Object.entries(attributes)) { elem.setAttribute(name, value);