clock example (code)

 code


______________________________________________________________________________________________________________________________________________________________________

<html>

<body>


<h2>best clock exampe</h2>


<button onclick="document.getElementById('demo').innerHTML = Date()" type="button">

Click me to display Date and Time.</button>


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


</body>

</html> 

<html>

<body>

<html>

<head>

<script>

function myFunction() {

  document.getElementById("demo").innerHTML = "get code by click the link.";

}

______________________________________________________________________________________________________________________________________________________________________

copy all code

Comments