Get in touch Call Us document.addEventListener("DOMContentLoaded", function () { var currentYear = new Date().getFullYear(); var copyrightElement = document.getElementById("copyright_yr"); copyrightElement.innerHTML = currentYear; });