Search
 
SCRIPT & CODE EXAMPLE
 

HTML

auto update copyright year html

<div class="copyright">
  <footer>Copyright © <span id="year"></span> , All rights reserved to X</footer>
</div>
<script>
  
  function getCurrentYear() {
    return new Date().getFullYear(); // returns the year via local timing
  };

  document.getElementById("year").innerHTML = getCurrentYear(); 
  //changing the inner html of the span with "year" id to the given year(2021)
</script>
Comment

PREVIOUS NEXT
Code Example
Html :: fullpage js cdn 
Html :: fafa login icons html code 
Html :: visualizador de pdf html5 
Html :: how to embed videos in html 
Html :: how to use google drive image in html 
Html :: & sign html 
Html :: markdown new page 
Html :: event.preventdefault() in angular 
Html :: html insert pdf 
Html :: bootstarp btn colors 
Html :: css border table none 
Html :: min length input html 
Html :: classs for making text bold in bootstarp 
Html :: include favicon html 
Html :: chrome full screen mac hide tabs 
Html :: responsive meta tag 
Html :: bootstrap responsive meta tag 
Html :: basecamp 3 api tag mention 
Html :: insertar fecha en pagina web 
Html :: how to read an input from HTML in javascript 
Html :: how to put images in html 
Html :: named slot vue 
Html :: ol text align 
Html :: how to get the name of a html balise and pass it in onPress 
Html :: What Is the Metaverse? 
Html :: show timestamp as yyyy mm dd html angular 
Html :: is titanfall 2 good 
Html :: how to make an image a full background in html 
Html :: html input label 
Html :: bootstrap responsive table 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =