mirror of
https://github.com/silicoflare/silicoflare-website.git
synced 2026-05-26 20:17:58 +05:30
ccc
This commit is contained in:
18
_temp/webgen.js
Normal file
18
_temp/webgen.js
Normal 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);
|
||||||
Reference in New Issue
Block a user