Web Design Script to Automatically Change Copyright Date
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.
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: ( 1 so far )
One Response to “Web Design Script to Automatically Change Copyright Date”
Gina
April 15th, 2010


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