how to clear all of document text with java script ?
I tried this but this code clear only body element :
document.body.innerHTML="";
how to clear all of document text with java script ?
I tried this but this code clear only body element :
document.body.innerHTML="";
simply you can use
document.body.innerText = '';
to remove the entire page text