Automatically Update Copyright Year In The Footer – setCopyrightYear

Category: Javascript | April 10, 2019
Authorjpatrickdevine
Last UpdateApril 10, 2019
LicenseMIT
Tags
Views596 views
Automatically Update Copyright Year In The Footer – setCopyrightYear

Just another pure JavaScript solution to automatically update the footer copyright year on the webpage.

Supports both single year and a year range.

How to use it:

Download and insert the setCopyrightYear.js script into the web page.

<script src="setCopyrightYear.js"></script>

Insert your copyright years in a span element. That’s it.

<footer>
  &copy; <span id="c_year">2012 - 2018</span> Example, Inc.
</footer>

You Might Be Interested In:


Leave a Reply