Example:
HTML
<script>
// Only paragraph 2 will be overwritten
document.getElementById("demo").innerHTML = "HELLO.";
</script>
Example of Accessing HTML Elements with JavaScript | HTML Style Guide |
Full Example of Accessing HTML Elements with JavaScript | HTML Style Guide |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Style Guide |
Uploaded by: | Admin |