Answers for "How to change htm h1 from nodejs"

1

How to change htm h1 from nodejs

<html>
<head></head>
<body>  
    <h1></h1>
<script src='test.js'></script>     
</body>
</html>
Posted by: Guest on April-22-2020
0

How to change htm h1 from nodejs

let h1 = document.getElementsByTagName('h1')[0];
h1.innerHTML = "Hello";
Posted by: Guest on April-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language