<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Click the button to display the seconds of the current time.</p>
<button onclick="myFunction()">Display Seconds</button>
<p id="point"></p>
<script>
function myFunction(){
var d = new Date();
var n = d.getSeconds();
document.getElementById("point").innerHTML = n;
}
</script> </body>
</html>