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