Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

innerHTML

<!DOCTYPE html>
<html>
<body>
  <p id="demo"></p>
//JavaScript can create dynamic HTML content:
<script>
document.getElementById("demo").innerHTML = "Date : " + Date(); </script>
</body>
</html>
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #innerHTML
ADD COMMENT
Topic
Name
2+2 =