Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

refresh secounds

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript new Date()</h2>


<p id="demo"></p>

<script>
setInterval(myFunction,1000);

function myFunction() {
  let d = new Date();


document.getElementById("demo").innerHTML = d.getSeconds();
setInterval(myFunction,1000);
}
</script>

</body>
</html>
 
PREVIOUS NEXT
Tagged: #refresh #secounds
ADD COMMENT
Topic
Name
1+8 =