Horje

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



Single Articles
Full Example of HTML JavaScriptHTML JavaScript


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

Type:
Html
Category:
Web Tutorial
Sub Category:
HTML JavaScript
Uploaded by:
Admin



Share on: