Javascript - Changing html content inside div tag, Javascript inner HTML example

Changing html content inside div tag

Changing HTML inside a div using javascript

Anything which we add inside the html tag will by using innerHTML function in javascript
 <div id="content"></div>

 <script type="text/javascript">
 document.getElementById'content').innerHTML='Hello'; 
 </script>

The above code will help you to add or change the HTML content inside the div tag.

The topic on Javascript - Changing html content inside div tag is posted by - Math

Hope you have enjoyed, Javascript - Changing html content inside div tagThanks for your time

Tech Bluff