Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Javascript rendering html

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body >
    <!-- H1 element will be create in body using Javascirpt -->
   
   <script type="text/javascript">
        var h1_tag = document.createElement("h1");
        h1_tag.innerHTML = "H1 Generated with Javascirpt";
        body_tag = document.getElementsByTagName('body')[0];
        body_tag.appendChild(h1_tag);
    </script>
</body>
</html> Copy Code
Source by www.alixaprodev.com #
 
PREVIOUS NEXT
Tagged: #Javascript #rendering #html
ADD COMMENT
Topic
Name
7+5 =