Horje

Example of Accessing HTML Elements with JavaScript

These two JavaScript statements will produce different results:
index.html
Example: HTML
<script>
// Only paragraph 2 will be overwritten
document.getElementById("demo").innerHTML = "HELLO.";
</script>





Type:
html
Category:
Web Tutorial
Sub Category:
HTML Style Guide
Uploaded by:
Admin