JavaScript makes HTML pages more dynamic and interactive. |
Example:
HTML
<!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>
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_scripts_intro
What is HTML JavaScript | HTML JavaScript |
How to use The HTML <script> Tag | HTML JavaScript |
How to create A Taste of JavaScript | HTML JavaScript |
How to create The HTML <noscript> Tag | HTML JavaScript |
Full Example of HTML JavaScript | HTML JavaScript |
Read Full: | HTML JavaScript |
Category: | Web Tutorial |
Sub Category: | HTML JavaScript |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 28 |