Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getElementById

<!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 developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #getElementById
ADD COMMENT
Topic
Name
1+9 =