Nothing is for sale here. Freewill tips keep the site running. Want to help? → Tip via Paypal

Auto-Updating Copyright Notice

This time saving set-it-and-forget-it JavaScript automatically inserts a copyright notice in your web pages with an end date that automatically updates every year! You might say it auto-magic-ally updates!

Depending on how big your site is and how your copyright notices are taken care of now, this script can be anything from a nice convenience to a major time saver. Here’s the code:

<script>
 // Script courtesy of BoogieJack.com and DIYwebmasters.com
  var Today    = new Date();
  var ThisYear    = Today.getFullYear();
  var DayName = Today.getDate();
  document.write("Copyright © BoogieJack.com 1997 - " + ThisYear);
</script>

<noscript>Copyright © BoogieJack.com</noscript>

The &copy; part places a copyright symbol in the notice, like this: ©

With that script placed in your source code wherever you want the copyright notice to appear you’ll never have to update your copyright notices again.

The last line includes another copyright notice. This one will only be shown to people using browsers that do not support JavaScript or have JavaScript turned off in their preferences.

Just change BoogieJack.com to whatever you want to use as the copyright owner, and change the beginning year to reflect the origination date of your document; or remove the beginning year and the dash to have the copyright be only the current year.

Notice I didn’t include a year with the no script notice. That would defeat the purpose since you’d have to go back and update it every year, which is what this script is designed to avoid the necessity of doing. Only a very small percentage of your visitors will ever see the no script notice, and in all probability, the vast majority of them will know very little about copyrights.

Here’s an example of how that would look on a web page: