This commit is contained in:
SilicoFlare
2023-03-24 21:28:23 +05:30
committed by GitHub
parent eb33aaa36c
commit 5ec254dac0

View File

@@ -1,18 +1,27 @@
setTimeout(function () {
var t = document.createElement("title"); var t = document.createElement("title");
t.innerHTML = "Dynamic HTML"; t.innerHTML = "Dynamic HTML";
document.head.appendChild(t); document.head.appendChild(t);
}, 2000);
var b = document.body; var b = document.body;
setTimeout(function () {
var temp = document.createElement("h1"); var temp = document.createElement("h1");
temp.innerHTML = "This is a heading!!"; temp.innerHTML = "This is a heading!!";
b.append(temp); b.append(temp);
}, 2000);
setTimeout(function () {
temp = document.createElement("h2"); temp = document.createElement("h2");
temp.innerHTML = 'Welcome!!'; temp.innerHTML = 'Welcome!!';
b.append(temp); b.append(temp);
}, 2000);
setTimeout(function () {
var d = document; var d = document;
temp = d.createElement("div"); 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??"; 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); b.append(temp);
}, 2000);