J.Gold J.Gold - 3 months ago 46
Javascript Question

Making a web page from Javascript only

So I have been given an assignment to rip down an existing HTML page and rebuild a new one just with Javascript. So I have taken down the page leaving me with the following:

<div id="masterDiv>
<script src = Javascript.js></script>

From here I want to structure a new site with a header, footer, left column, right column and a body in the middle with only Javascript (I have appended the spare div to the master div)


All you really need to do this is

Here is a simple example of these three:

var div = document.createElement("div");
div.textContent = "Hello World";
<div id="container"></div>