Javascript to insert current year in copyright

Copyright &copy; <SCRIPT>
<!–
var year=new Date();
year=year.getYear();
if (year<1900) year+=1900;
document.write(year);
//–>
</SCRIPT> Your Name, All Rights Reserved.

It will look like this

Copyright © 2012 Your Name, All Rights Reserved

Dreamweaver Training in NYC, New York and live online classes

One thought on “Javascript to insert current year in copyright

Leave a Reply

Your email address will not be published. Required fields are marked *