Loading, please wait...

HTML - JavaScript - button to Display Date and Time

Jan 03, 2022 HTML, JavaScript, 177 Views
HTML - JavaScript - button to Display Date and Time

HTML - JavaScript - button to Display Date and Time

<!DOCTYPE html>
<html>
<body>

<h1>TutorialsLink Community</h1>

<button type="button"onclick="document.getElementById('ttlk').innerHTML = Date()">
Click here to display Date and Time.</button>
<p id="ttlk"></p>

</body>
</html>