Update 'frontend.js'

This commit is contained in:
nodemixaholic 2024-03-31 21:49:25 +00:00
parent cd89c6aad5
commit 3d7c53388d

View file

@ -110,7 +110,10 @@ function createParagraph(elementID, text) {
} }
function createBody() { function createBody() {
createElement("body", "body") const element = document.createElement("body");
element.id = "body";
document.appendChild(element);
return element;
} }
function createButton(elementID, text, attributes = {}) { function createButton(elementID, text, attributes = {}) {