graphic design, open source, science

Copyright year

How to put a current year on a web page

html:

    &copy; <span id="spanYear"></span>

java script:

   <script type="text/javascript">
         var year = new Date();
         document.getElementById("spanYear").innerHTML = year.getFullYear();
    </script>

 

Go back to the previous page

 






Disclaimer


The views and opinions found within these web pages are my own and are not necessarily shared by my employer, coworkers, friends, or anybody I chat with.

They are also subject to change at any time, and without notice.

And no tree was cut in the production of this website.