Q:

HTML - JavaScript - button to Display Date and Time

0

HTML - JavaScript - button to Display Date and Time

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<!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> 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now