<button onclick="document.getElementById('demo').innerHTML=Date()">The time is?</button> <p id="demo"></p>