I want to create new divs as the page loads. These divs will appear as an ordered group which changes depending upon external data from a JSON file. I will need to do this w
Have you tried JQuery? Vanilla javascript can be tough. Try using this:
$('.container-element').add('Insert Div Content');
.container-element is a JQuery selector that marks the element with the class "container-element" (presumably the parent element in which you want to insert your divs). Then the add() function inserts HTML into the container-element.