var html = 'Home'; html += 'Archive' html += 'About' document.getElementById("nav").innerHTML = html;