// Create a new
element
var h = document.createElement(“h1”);
// Create the header text and add it to the element
h.appendChild( document.createTextNode(“Main Page”) );
// Add the header to the start of the
document.body.insertBefore( h, document.body.firstChild );