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>
Full Example of HTML JavaScript | HTML JavaScript |
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 |