javascript set content in div without innerhtml

Solutions on MaxInterview for javascript set content in div without innerhtml by the best coders in the world

showing results for - "javascript set content in div without innerhtml"
Kirsten
29 Feb 2019
1var MyDiv1 = document.getElementsByClassName('page-title');      // une autre DIV display:none;
2var MyDiv2 = document.getElementsByClassName('entry-summary');   // le DIV target
3    MyDiv2[0].childNodes[0].nodeValue = "<p class='Title-prod-msk'>"+MyDiv1[0].innerHTML+"</p>";