This commit is contained in:
SilicoFlare
2023-03-24 21:20:18 +05:30
committed by GitHub
parent f942bf7652
commit eb33aaa36c

18
_temp/webgen.js Normal file
View File

@@ -0,0 +1,18 @@
var t = document.createElement("title");
t.innerHTML = "Dynamic HTML";
document.head.appendChild(t);
var b = document.body;
var temp = document.createElement("h1");
temp.innerHTML = "This is a heading!!";
b.append(temp);
temp = document.createElement("h2");
temp.innerHTML = 'Welcome!!';
b.append(temp);
var d = document;
temp = d.createElement("div");
temp.innerHTML = "This webpage has been ENTIRELY constructed piece-by-piece with JavaScript! Can you believe how powerful dynamically generated pages have become??";
b.append(temp);