<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<p id="demo"></p>
<button onclick="myFunction()">Click Me</button>
<script>
// This is JavaScript. it is put between the <script> tags.
function myFunction() {
document.getElementById('demo').innerHTML = Date();
}
</script>
</body>
</html>