+ 1
How to stop creating elements in JavaScript
Let’s say I have a document.write(“random text”); . How do I delete that element on the page?
2 Respuestas
+ 3
You should use the empty character combination ↓↓↓
document.getElementById ("MyId"). InnerHTML = "";
Or document.body.innerHTML = "";
Hope to your understanding :)
@Sololearn
+ 1
document.body.innerHTML = ""