var date = document.write(new Date().getFullYear()); document.getElementById("year").innerHTML = date;