Loading, please wait...

A to Z Full Forms and Acronyms

HTML - JavaScript - button to Display Date and Time

Jan 03, 2022 HTML, JavaScript, 2872 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> 

A to Z Full Forms and Acronyms

Related Article