[Solved] why javascript code changed the innerText,while the page dosen’t? [closed]
[ad_1] first of all, earn your element control then change it : const span = document.querySelector(‘span’); span.textContent=”new text”; 5 [ad_2] solved why javascript code changed the innerText,while the page dosen’t? [closed]