/ Published in: JavaScript

Paste this code in your HTML to display the current year. This script is commonly used in the © copyright's current year.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> now = new Date theYear=now.getYear() if (theYear < 1900) theYear=theYear+1900 document.write(theYear) </script>
Comments
