Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

js date for site

<span id="date-year">
 <script>
  document.getElementById('date-year').appendChild(document.createTextNode(new Date().getFullYear()))
 </script>
</span>
 
PREVIOUS NEXT
Tagged: #js #date #site
ADD COMMENT
Topic
Name
4+3 =