Horje
What is HTML JavaScript

JavaScript makes HTML pages more dynamic and interactive.


Full Example of HTML JavaScript

JavaScript makes HTML pages more dynamic and interactive.
index.html
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> 

Output should be:

Full Example of HTML JavaScript
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_scripts_intro





Related Articles
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

Single Articles
Full Example of HTML JavaScriptHTML JavaScript

Read Full:
HTML JavaScript
Category:
Web Tutorial
Sub Category:
HTML JavaScript
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
28



Share on: