HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>The internal clock in JavaScript starts at 1 January 1970 00:00:00 UTC.</p> <p>Click the button to display the number of milliseconds from 1 January 1970 00:00:00 to current date.</p> <button onclick="myFunction()">Diplay Milliseconds</button> <p id="point"></p> <script> function myFunction() { var d = Date.now(); document.getElementById("point").innerHTML = d; } </script> </body> </html>
OUTPUT
×

Save as Private