Keep your copyright up-to-date automatically
You've probably got a copyright notice on your website. But is it up to date?
It can be frustrating forgetting to update your site every year - especially when there's no need. With a quick and dirty line of Javascipt your sites will always be up-to-date without you having to touch it.
<p>© We are SMILE Ltd. 2005-<script type="text/javascript">var d=new Date();document.write(d.getFullYear());</script>, All rights reserved.</p>
Super simple!
Written by Nathan Monk
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Related Tags
#javascript
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#