Tag: change html content

  • Changing HTML with JavaScript

    Changing html with javascript is very simple but tricky, one can use InnerHTML javascript property to do that. Below I will show you how to do this step by step. <html> <body> <div id=”target”>will change this html</div> <script> document.getElementById(“target”).innerHTML=”here is the new html”; </script> </body> </html> Our goal is to change the html content of […]