![]() |
JavaScript makes HTML pages more dynamic and interactive. |
<!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>
Category: | Web Tutorial |
Sub Category: | HTML JavaScript |
Uploaded by: | Admin |
Read Articlehttps://horje.com/learn/1434/reference