Web Design Script to Automatically Change Copyright Date

Posted by Dave Lauretti on November 18th, 2009.

This one is simple. I’m placing this code snippets although I could have place it in web design because it also falls into that category.

The script. This little javascript snippet will automatically change the date beside your copyright – which is usually placed in the footer of your webpage.

Simply copy and paste the code below into your HTML webpage.

&copy;<script type=”text/javascript”>
var theDate=new Date()
document.write(theDate.getFullYear());
</script> YourDomain.com. All Rights Reserved.

Now each new year, when the clock strikes 12, your copyright year will change to the current year. This code snippet is especially helpful to web designers who have quite a few clients and don’t want to feel obliged to go in and change the date each year.

Enjoy!

Make a Comment

Make A Comment: ( 1 so far )

One Response to “Web Design Script to Automatically Change Copyright Date”

RSS Feed for SEO Article Directory For The SEO Experts Comments RSS Feed

I tried it and didn’t get a year. I presume I have to enter it, but where?

Gina
April 15th, 2010

No comments yet.

Topics