Automatically Update Copyright Year In The Footer – setCopyrightYear

Category: Javascript | April 10, 2019
Author: jpatrickdevine
Views Total: 175
Official Page: Go to website
Last Update: April 10, 2019
License: MIT

Preview:

Automatically Update Copyright Year In The Footer – setCopyrightYear

Description:

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