JavaScript makes HTML pages more dynamic and interactive.
Click me to display Date and Time.
Live Demo & Try it yourself!
Video is not available... Embedded is previous playlist.
JavaScript makes HTML pages more dynamic and interactive.
Click me to display Date and Time.
<!DOCTYPE html>
<html>
<body>
<h1>My First JavaScript</h1>
<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Click me to display Date and Time.</button>
<p id="demo"></p>
</body>
</html>