From 3d7c53388d6288dbe4ebdfa022192f117283a6b3 Mon Sep 17 00:00:00 2001 From: nodemixaholic Date: Sun, 31 Mar 2024 21:49:25 +0000 Subject: [PATCH] Update 'frontend.js' --- frontend.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend.js b/frontend.js index f024d39..dbfbc96 100644 --- a/frontend.js +++ b/frontend.js @@ -110,7 +110,10 @@ function createParagraph(elementID, text) { } function createBody() { - createElement("body", "body") + const element = document.createElement("body"); + element.id = "body"; + document.appendChild(element); + return element; } function createButton(elementID, text, attributes = {}) {