<h1>My First JavaScript</h1>
<button type="button"
onclick="document.getElementById('dem').innerHTML = Date()">
Click me to display Date and Time.</button>
<p id="demo"></p>
Hi I am making a Date pop out Button in Javascrpit and using html too. But Which I click the button in Output page it didn't show to current time of my zone. It should pop out when I click the button in the same page not in different one.