onclick="document.getElementById('demo').innerHTML = Date()"> Click me to display Date and Time.</button>